feat: build multiarch images
Some checks failed
ci/crow/cron/process-updates-alpine-320-arm64 Pipeline was successful
ci/crow/cron/process-updates-redhat-8-arm64 Pipeline was successful
ci/crow/cron/images Pipeline failed
ci/crow/cron/process-updates-redhat-8-amd64 Pipeline was successful
ci/crow/cron/process-updates-alpine-320-amd64 Pipeline was successful
ci/crow/cron/process-updates-ubuntu-2404-amd64 Pipeline was successful
ci/crow/cron/process-updates-alpine-321-amd64 Pipeline was successful
ci/crow/cron/process-updates-redhat-9-arm64 Pipeline was successful
ci/crow/cron/process-updates-ubuntu-2204-amd64 Pipeline was successful
ci/crow/cron/process-updates-redhat-9-amd64 Pipeline was successful
ci/crow/cron/process-updates-ubuntu-2404-arm64 Pipeline was successful

This commit is contained in:
Patrick Schratz 2025-06-03 17:13:57 +02:00
commit 1ec3605c9f
Signed by: pat-s
GPG key ID: 3C6318841EF78925
2 changed files with 28 additions and 35 deletions

View file

@ -4,44 +4,38 @@ when:
matrix:
include:
- PLATFORM: redhat-9
ARCH: arm64
- PLATFORM: redhat-9
ARCH: amd64
- PLATFORM: redhat-8
ARCH: arm64
- PLATFORM: redhat-8
ARCH: amd64
- PLATFORM: ubuntu-2404
ARCH: arm64
- PLATFORM: ubuntu-2404
ARCH: amd64
- PLATFORM: ubuntu-2204
ARCH: arm64
- PLATFORM: ubuntu-2204
ARCH: amd64
- PLATFORM: alpine-321
ARCH: arm64
- PLATFORM: alpine-321
ARCH: amd64
# - PLATFORM: redhat-9
# ARCH: arm64
# - PLATFORM: redhat-9
# ARCH: amd64
# - PLATFORM: redhat-8
# ARCH: arm64
# - PLATFORM: redhat-8
# ARCH: amd64
# - PLATFORM: ubuntu-2404
# ARCH: arm64
# - PLATFORM: ubuntu-2404
# ARCH: amd64
# - PLATFORM: ubuntu-2204
# ARCH: arm64
# - PLATFORM: ubuntu-2204
# ARCH: amd64
# - PLATFORM: alpine-321
# ARCH: arm64
# - PLATFORM: alpine-321
# ARCH: amd64
- PLATFORM: alpine-322
ARCH: arm64
- PLATFORM: alpine-322
ARCH: amd64
R_VERSION: 4.5.0
steps:
- name: 'Build image'
image: docker.io/thegeeklab/wp-docker-buildx:6.1.2
image: docker.io/woodpeckerci/plugin-docker-buildx:6.0.1
settings:
mtu: 1350
platforms: linux/${ARCH}
Containerfile: docker/Containerfile-${PLATFORM}
experimental: true
repo: devxygmbh/${ARCH}-binaries-r-${PLATFORM}
tags: latest
# cache_from:
# - 'type=registry\\,ref=devxygmbh/${ARCH}-binaries-r-${PLATFORM}:cache\\,mode=max\\,image-manifest=true\\,oci-mediatypes=true'
# cache_to: 'type=registry,ref=devxygmbh/${ARCH}-binaries-r-${PLATFORM}:cache,mode=max,image-manifest=true,oci-mediatypes=true'
platforms: linux/amd64,linux/arm64
Dockerfile: docker/Containerfile-${PLATFORM}
repo: devxygmbh/rpkgs-build-env-${PLATFORM}
tags: ${R_VERSION}
username: devxygmbh
password:
from_secret: dockerhub_token_devxygmbh
@ -52,6 +46,7 @@ steps:
from_secret: GITHUB_PAT
build_args_from_env:
- ARCH
- R_VERSION
backend_options:
kubernetes:
resources:
@ -61,8 +56,6 @@ steps:
limits:
memory: 1300Mi
cpu: 2000m
nodeSelector:
kubernetes.io/arch: '${ARCH}'
tolerations:
- key: 'CI'
operator: 'Equal'

View file

@ -9,7 +9,7 @@ RUN curl -s -L -O https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Sour
FROM alpine:3.22 AS final
ARG R_VERSION=4.5.0
ARG R_VERSION=4.4.3
ENV PATH=/opt/R/${R_VERSION}/bin:$PATH
ENV TZ="Europe/Berlin"
ENV R_LIBS_USER=/mnt/cache/R-pkgs