refactor(ci): use multi-R-version images in update-package-index workflows

Drop the R-version suffix from each image tag, add an explicit
R_VERSION env var per file, and invoke R via
/opt/R/${R_VERSION}/bin/R at every call site.

Also repoints every update-package-index workflow at the image that
matches its own platform (was previously pinned to
build-env-ubuntu:noble-4.4 / noble-4.5 regardless of platform).
This commit is contained in:
Patrick Schratz 2026-05-25 22:53:50 +02:00
commit 6f1c421434
Signed by: pat-s
GPG key ID: 3C6318841EF78925
14 changed files with 97 additions and 83 deletions

View file

@ -9,7 +9,7 @@ skip_clone: true
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-alpine:3.22
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -36,17 +36,18 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.5.3
# volumes: # volumes:
# - amd64-binaries-r-dep-cache-alpine-322:/mnt/cache # - amd64-binaries-r-dep-cache-alpine-322:/mnt/cache
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
# - cd /mnt/cache/packages # - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "alpine322", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "alpine322", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -12,7 +12,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-alpine:3.22
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -39,17 +39,18 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.5.3
# volumes: # volumes:
# - arm64-binaries-r-dep-cache-alpine-322:/mnt/cache # - arm64-binaries-r-dep-cache-alpine-322:/mnt/cache
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
# - cd /mnt/cache/packages # - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "alpine322", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "alpine322", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -12,7 +12,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-alpine:3.23
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -39,17 +39,18 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.5.3
# volumes: # volumes:
# - amd64-binaries-r-dep-cache-alpine-323:/mnt/cache # - amd64-binaries-r-dep-cache-alpine-323:/mnt/cache
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
# - cd /mnt/cache/packages # - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "alpine323", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "alpine323", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -12,7 +12,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-alpine:3.23
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -39,17 +39,18 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.5.3
# volumes: # volumes:
# - arm64-binaries-r-dep-cache-alpine-323:/mnt/cache # - arm64-binaries-r-dep-cache-alpine-323:/mnt/cache
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
# - cd /mnt/cache/packages # - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "alpine323", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "alpine323", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -13,7 +13,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.5 image: reg.devxy.io/rpkgs/build-env-redhat:10
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -40,15 +40,16 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.5.3
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
- cd /mnt/cache/packages - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel10", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel10", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -13,7 +13,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-redhat:10
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -40,15 +40,16 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.5.3
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
- cd /mnt/cache/packages - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel10", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel10", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -13,7 +13,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-redhat:8
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -40,14 +40,15 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.4.3
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- cd /mnt/cache/packages - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel8", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel8", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -13,7 +13,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-redhat:8
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -40,15 +40,16 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.4.3
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
- cd /mnt/cache/packages - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel8",s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel8",s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -13,7 +13,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-redhat:9
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -40,15 +40,16 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.4.3
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
- cd /mnt/cache/packages - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel9", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel9", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -13,7 +13,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-redhat:9
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -40,15 +40,16 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.4.3
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
- cd /mnt/cache/packages - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel9", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "rhel9", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -13,7 +13,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-ubuntu:jammy
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -40,15 +40,16 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.4.3
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
- cd /mnt/cache/packages - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "jammy", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY")); warnings()' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "jammy", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY")); warnings()'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -13,7 +13,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-ubuntu:jammy
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -40,15 +40,16 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.4.3
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
- cd /mnt/cache/packages - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "jammy", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "jammy", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -13,7 +13,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-ubuntu:noble
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -40,17 +40,18 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.4.3
# volumes: # volumes:
# - amd64-binaries-r-dep-cache-ubuntu-2404:/mnt/cache # - amd64-binaries-r-dep-cache-ubuntu-2404:/mnt/cache
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
- cd /mnt/cache/packages - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "noble", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "noble", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -13,7 +13,7 @@ depends_on:
steps: steps:
- name: Upload PACKAGES files - name: Upload PACKAGES files
image: reg.devxy.io/rpkgs/build-env-ubuntu:noble-4.4 image: reg.devxy.io/rpkgs/build-env-ubuntu:noble
pull: true pull: true
environment: environment:
RED_HAT_DEV_PW: RED_HAT_DEV_PW:
@ -40,15 +40,16 @@ steps:
# set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves # set the location of the 'pkgcache' cache dir which persists the R package dependencies needed to install the packages themselves
R_PKG_CACHE_DIR: /mnt/cache/pkgcache R_PKG_CACHE_DIR: /mnt/cache/pkgcache
R_LIBS_USER: /mnt/cache/R-pkgs R_LIBS_USER: /mnt/cache/R-pkgs
R_VERSION: 4.4.3
commands: commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git . - git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/packages/* - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git")'
- R -q -e 'pak::pak("pat-s/cranlike@s3")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/cranlike@s3")'
- R -q -e 'pak::pak("pat-s/desc@description-from-remote")' - /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("pat-s/desc@description-from-remote")'
- R -q -e 'packageVersion("bincraft")' - /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
- cd /mnt/cache/packages - cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "noble", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))' - /opt/R/${R_VERSION}/bin/R -q -e 'options(crayon.enabled = TRUE); library(bincraft); future::plan("multisession", workers = 4); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index(codename = "noble", s3_endpoint = "https://s3.eu-central-003.backblazeb2.com", s3_region = "eu-central-003", s3_bucket = "devxy-rpkgs-binaries", s3_access_key_id = Sys.getenv("B2_S3_ACCESS_KEY"), s3_secret_access_key = Sys.getenv("B2_S3_SECRET_KEY"))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources: