Upload package index files to S3
upload_package_index.RdUpload package index files to S3
Usage
upload_package_index(
s3_endpoint,
s3_region,
s3_bucket,
package_name = NULL,
local_output_dir_root = ".",
codename = NULL,
arch = NULL,
s3_access_key_id = NULL,
s3_secret_access_key = NULL,
r_minor = NULL,
metadata_db_type = "postgres",
metadata_db_host = "r-binaries.devxy.io",
metadata_db_name = "build_metadata",
metadata_db_port = 15432L,
metadata_db_user = "rpkgs",
metadata_db_password = Sys.getenv("PGPASS"),
metadata_db_sslmode = "require"
)Arguments
- s3_endpoint
(character)
S3 endpoint- s3_region
(character)
S3 region- s3_bucket
(character)
S3 bucket name- package_name
(character)
Package name- local_output_dir_root
(character)
Path to local build root- codename
(character)
Linux distribution identifier- arch
(character)
Architecture,"amd64"or"arm64".- s3_access_key_id
(character)
S3 access key ID- s3_secret_access_key
(character)
S3 secret access key- r_minor
Optional
"major.minor"string. When set, the index is written/read under the per-minor slot…/contrib/<r_minor>/instead of the generic…/contrib/slot.- 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
Details
A per-minor index (r_minor set) reads the ABI classifier cache and the
flat-object safety table from the metadata database described by the
metadata_db_* arguments; the generic index does not use the database. The
defaults point at the devxy build database with the password taken from the
PGPASS environment variable, which is what existing pipelines rely on;
pass the arguments explicitly for any other database. When the password is
empty, or any of these lookups fails, a per-minor call aborts and leaves the
previously published index in place rather than publishing one that may
serve binaries known not to load under that minor.