fix platform mapping

This commit is contained in:
Patrick Schratz 2024-09-07 22:48:58 +02:00
commit cce9cf9591
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -19,13 +19,14 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
cli::cli_h2("Preparations ({.pkg {package_name}})")
codename <- set_codename(codename)
# map the 'pak' platform names to the ones used in s3
if (is.null(platform)) {
platform <- switch(codename,
"jammy" = "ubuntu-2204",
"noble" = "ubuntu-2404",
"rhel9" = "redhat-9",
"rhel8" = "redhat-8",
"alpine" = "alpine-320"
"alpine320" = "alpine-320"
)
}