refactor(ci): use multi-R-version image in archive-missed-packages

Drop the R-version suffix from the image tag and invoke R via the
explicit /opt/R/${R_VERSION}/bin/R path. The image OS does not
matter for this workflow; it stays on alpine:3.23.
This commit is contained in:
Patrick Schratz 2026-05-25 22:57:21 +02:00
commit b25885bae3
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -36,7 +36,7 @@ matrix:
steps:
- name: 'Archive missed packages'
image: reg.devxy.io/rpkgs/build-env-alpine:3.23-4.5
image: reg.devxy.io/rpkgs/build-env-alpine:3.23
pull: true
environment:
RED_HAT_DEV_PW:
@ -53,10 +53,11 @@ steps:
from_secret: GITHUB_PAT
# normal env vars
GIT_USER: pat-s
R_VERSION: 4.5.3
commands:
- R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git", dependencies = TRUE)'
- R -q -e 'packageVersion("bincraft")'
- R -q -e 'bincraft::process_unarchived_pkgs(Sys.getenv("CODENAME"), Sys.getenv("ARCH"), workers = 2L)'
- /opt/R/${R_VERSION}/bin/R -q -e 'pak::pak("git::https://codefloe.com/rpkgs/bincraft.git", dependencies = TRUE)'
- /opt/R/${R_VERSION}/bin/R -q -e 'packageVersion("bincraft")'
- /opt/R/${R_VERSION}/bin/R -q -e 'bincraft::process_unarchived_pkgs(Sys.getenv("CODENAME"), Sys.getenv("ARCH"), workers = 2L)'
backend_options:
kubernetes:
resources: