build-cran-binaries/.woodpecker/images.yaml
2024-09-04 21:09:23 +02:00

69 lines
1.7 KiB
YAML

when:
- event: cron
cron: images
matrix:
include:
- PLATFORM: redhat-9
ARCH: arm64
- PLATFORM: redhat-8
ARCH: arm64
- PLATFORM: ubuntu-2404
ARCH: arm64
- PLATFORM: ubuntu-2204
ARCH: arm64
- PLATFORM: alpine-320
ARCH: arm64
- PLATFORM: alpine-320
ARCH: amd64
steps:
- name: 'Build image'
image: woodpeckerci/plugin-docker-buildx:4.2.0
secrets: [RED_HAT_DEV_PW]
settings:
platforms: linux/arm64
Dockerfile: docker/Dockerfile-${PLATFORM}
experimental: true
repo: devxygmbh/${ARCH}-binaries-r-${PLATFORM}
username: devxygmbh
password:
from_secret: dockerhub_token_devxygmbh
build_args_from_env:
- RED_HAT_DEV_PW
backend_options:
kubernetes:
resources:
requests:
memory: 500Mi
cpu: 1000m
limits:
memory: 800Mi
cpu: 1000m
nodeSelector:
kubernetes.io/arch: 'arm64'
- name: 'ntfy'
image: codeberg.org/l-x/woodpecker-ntfy:1.3.1
when:
- status: [failure]
settings:
url: https://ntfy.devxy.io/ci-builds
token:
from_secret: ntfy_token
title: "CI '${CI_REPO}' failed"
actions: view, Open build, ${CI_PIPELINE_URL}, clear=false;
click: ${CI_BUILD_LINK}
message: |
Workflow: ${CI_WORKFLOW_NAME/\n//}
Commit message: ${CI_COMMIT_MESSAGE/\n//}
Commit Author: ${CI_COMMIT_AUTHOR/\n//}
backend_options:
kubernetes:
resources:
requests:
memory: 100Mi
cpu: 0m
limits:
memory: 300Mi
cpu: 200m