Skip to content

Commit

Permalink
Try using bionic images in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
nealrichardson committed Apr 17, 2024
1 parent 5a5c723 commit ef800d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions R/utils-ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ determine_license_env <- function(license) {

version_to_docker_tag <- function(version) {
# Prior to 2022.09.0, the plain version number was the tag
# After, it's "<ubuntu-codename>-<version>" (jammy works for all for now)
# After, it's "<ubuntu-codename>-<version>"
# If you want a specific image tag, just pass it in and it will go through unchanged
try(
{
if (numeric_version(version) >= "2022.09") {
numver <- numeric_version(version)
if (numver > "2023.06") {
version <- paste0("jammy-", version)
} else if (numver >= "2022.09") {
# There's both jammy and bionic for these, but the bionic ones
# seem more reliable in CI
version <- paste0("bionic-", version)
}
},
silent = TRUE
Expand Down

0 comments on commit ef800d8

Please sign in to comment.