fix platform mapping
This commit is contained in:
parent
1fe3e92fe2
commit
cce9cf9591
1 changed files with 2 additions and 1 deletions
|
|
@ -19,13 +19,14 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
|
||||||
cli::cli_h2("Preparations ({.pkg {package_name}})")
|
cli::cli_h2("Preparations ({.pkg {package_name}})")
|
||||||
codename <- set_codename(codename)
|
codename <- set_codename(codename)
|
||||||
|
|
||||||
|
# map the 'pak' platform names to the ones used in s3
|
||||||
if (is.null(platform)) {
|
if (is.null(platform)) {
|
||||||
platform <- switch(codename,
|
platform <- switch(codename,
|
||||||
"jammy" = "ubuntu-2204",
|
"jammy" = "ubuntu-2204",
|
||||||
"noble" = "ubuntu-2404",
|
"noble" = "ubuntu-2404",
|
||||||
"rhel9" = "redhat-9",
|
"rhel9" = "redhat-9",
|
||||||
"rhel8" = "redhat-8",
|
"rhel8" = "redhat-8",
|
||||||
"alpine" = "alpine-320"
|
"alpine320" = "alpine-320"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue