build-cran-binaries/.crow/images.yaml

80 lines
2.3 KiB
YAML

when:
- event: cron
cron: images
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-320
ARCH: arm64
- PLATFORM: alpine-320
ARCH: amd64
- PLATFORM: alpine-321
ARCH: arm64
- PLATFORM: alpine-321
ARCH: amd64
steps:
- name: 'Build image'
image: docker.io/thegeeklab/wp-docker-buildx:6.1.0
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'
username: devxygmbh
password:
from_secret: dockerhub_token_devxygmbh
build_args:
RED_HAT_DEV_PW:
from_secret: RED_HAT_DEV_PW
GITHUB_PAT:
from_secret: GITHUB_PAT
build_args_from_env:
- ARCH
backend_options:
kubernetes:
resources:
requests:
memory: 1300Mi
cpu: 1000m
limits:
memory: 1300Mi
cpu: 2000m
nodeSelector:
kubernetes.io/arch: '${ARCH}'
tolerations:
- key: 'CI'
operator: 'Equal'
value: 'true'
effect: 'NoSchedule'
- name: 'ntfy'
image: binwiederhier/ntfy:v2.11.0
when:
- status: [failure]
environment:
NTFY_TOKEN:
from_secret: ntfy_token
commands: |
ntfy publish --tags=no_entry_sign --token $NTFY_TOKEN -t "Run '${CI_REPO}' failed" --click="${CI_PIPELINE_URL}" --actions="view, Open build, ${CI_PIPELINE_URL}, clear=true;" ntfy.devxy.io/ci-builds Workflow: ${CI_WORKFLOW_NAME} Commit message: ${CI_COMMIT_MESSAGE} Commit Author: ${CI_COMMIT_AUTHOR}