Skip to contents

Upload binary to S3

Usage

upload_single_binary(
  package_name,
  tag,
  s3_endpoint,
  s3_region,
  s3_bucket,
  local_output_dir_root = ".",
  codename = NULL,
  force = FALSE,
  is_r_minor_sensitive = FALSE,
  s3_access_key_id = NULL,
  s3_secret_access_key = NULL,
  binary_output_path = NULL,
  metadata_db_type = "postgres",
  metadata_db_host = NULL,
  metadata_db_name = NULL,
  metadata_db_port = NULL,
  metadata_db_user = NULL,
  metadata_db_password = NULL,
  metadata_db_sslmode = NULL
)

Arguments

package_name

(character)
Package name

tag

(character)
Tag/version. Tags starting with "R-" are filtered out.

s3_endpoint

(character)
S3 endpoint

s3_region

(character)
S3 region

s3_bucket

(character)
S3 bucket name

local_output_dir_root

(character)
Path to local build root

codename

(character)
Linux distribution identifier

force

(logical)
Whether to force-build packages

is_r_minor_sensitive

(logical)
If TRUE, treats the package to be minor version specific and injects a version identifier into the file path.

s3_access_key_id

(character)
S3 access key ID

s3_secret_access_key

(character)
S3 secret access key

binary_output_path

(character)
Local directory holding the built tarball. Defaults to the binary path under local_output_dir_root.

metadata_db_type

(character)
Type of metadata database

metadata_db_host

(character)
Host value of metadata database

metadata_db_name

(character)
Name of metadata database

metadata_db_port

(integer)
Port of metadata database

metadata_db_user

(character)
User value of metadata database

metadata_db_password

(character)
User password of metadata database

metadata_db_sslmode

(character)
SSL mode for metadata database

Value

TRUE when the binary is in S3 (uploaded now or already there), FALSE when the upload could not be confirmed. The value carries an is_r_minor_sensitive attribute naming the slot the binary was written to, which differs from the argument when the symbol inspection overrode it.

Details

The metadata_db_* arguments name the database where the symbol-inspection verdict of a flat-slot binary is recorded for the per-minor index build. Without them nothing is recorded.