use matrix notation

This commit is contained in:
Patrick Schratz 2024-07-29 00:09:11 +02:00
commit f938b71bde
Signed by: pat-s
GPG key ID: 3C6318841EF78925
2 changed files with 15 additions and 11 deletions

View file

@ -3,12 +3,14 @@ when:
skip_clone: true skip_clone: true
# matrix: matrix:
# include: include:
# - PLATFORM: rhel-9 - PLATFORM: rhel-9
# PLATFORM_ID: el9 BLOCK: 650:1050
# - PLATFORM: centos-8 # - PLATFORM: rhel-9
# PLATFORM_ID: el8 # BLOCK: 1051:1450
# - PLATFORM: rhel-9
# BLOCK: 1451:1450
# - PLATFORM: ubuntu-2204 # - PLATFORM: ubuntu-2204
# PLATFORM_ID: 2204 # PLATFORM_ID: 2204
# - PLATFORM: ubuntu-2404 # - PLATFORM: ubuntu-2404
@ -16,7 +18,7 @@ skip_clone: true
# - PLATFORM: opensuse-155 # - PLATFORM: opensuse-155
# PLATFORM_ID: suse155 # PLATFORM_ID: suse155
steps: steps:
- name: Build binaries - name: "Build binaries (${PLATFORM}: ${BLOCK})"
secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token] secrets: [red_hat_dev_pw, aws_access_key_id, aws_secret_access_key, pgpass, git_ro_token]
image: docker.io/pats22/arm-binaries-r-ubi9 image: docker.io/pats22/arm-binaries-r-ubi9
pull: true pull: true
@ -44,7 +46,7 @@ steps:
# more complicated system dependencies which pak cannot resolve # more complicated system dependencies which pak cannot resolve
- mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages - mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages
# set additional repos: important as otherwise some packages cannot be resolved (e.g. INLA). Also: setting our own binary repos so we can make use of them for dep installation at some point # set additional repos: important as otherwise some packages cannot be resolved (e.g. INLA). Also: setting our own binary repos so we can make use of them for dep installation at some point
- R -q -e 'options(crayon.enabled = TRUE, Ncpus = 6, future.globals.onReference = "error", repos = structure(c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"))); pkgs = tools::CRAN_package_db()[[1]][650:1050]; library(rBinaries); future::plan("multisession", workers = 6, rscript_startup = quote(options(crayon.enabled = TRUE))); foo = lapply(pkgs, function(x) build_binary_package(x, build_for_minor=FALSE, debug = FALSE, force = TRUE))' - R -q -e 'options(crayon.enabled = TRUE, Ncpus = 6, future.globals.onReference = "error", repos = structure(c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"))); pkgs = tools::CRAN_package_db()[[1]][${BLOCK}]; library(rBinaries); future::plan("multisession", workers = 6, rscript_startup = quote(options(crayon.enabled = TRUE))); foo = lapply(pkgs, function(x) build_binary_package(x, build_for_minor=FALSE, debug = FALSE, force = TRUE))'
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:

View file

@ -4,9 +4,9 @@ when:
name: images name: images
steps: steps:
"Build image": 'Build image':
image: woodpeckerci/plugin-docker-buildx:4.2.0 image: woodpeckerci/plugin-docker-buildx:4.2.0
secrets: [red_hat_dev_pw] secrets: [RED_HAT_DEV_PW]
settings: settings:
platforms: linux/arm64 platforms: linux/arm64
Dockerfile: docker/Dockerfile-ubi9 Dockerfile: docker/Dockerfile-ubi9
@ -16,6 +16,8 @@ steps:
username: pats22 username: pats22
password: password:
from_secret: dockerhub_token_pats22 from_secret: dockerhub_token_pats22
build_args_from_env:
- RED_HAT_DEV_PW
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources:
@ -26,4 +28,4 @@ steps:
memory: 800Mi memory: 800Mi
cpu: 1000m cpu: 1000m
nodeSelector: nodeSelector:
kubernetes.io/arch: 'arm64' kubernetes.io/arch: 'arm64'