70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
when:
|
|
- event: cron
|
|
cron: images
|
|
|
|
matrix:
|
|
include:
|
|
- OS: redhat
|
|
OS_VERSION: 8
|
|
R_VERSION: 4.4.3
|
|
- OS: redhat
|
|
OS_VERSION: 9
|
|
R_VERSION: 4.4.3
|
|
- OS: ubuntu
|
|
OS_VERSION: jammy
|
|
R_VERSION: 4.4.3
|
|
- OS: ubuntu
|
|
OS_VERSION: noble
|
|
R_VERSION: 4.4.3
|
|
- OS: alpine
|
|
OS_VERSION: 3.21
|
|
R_VERSION: 4.4.3
|
|
- OS: alpine
|
|
OS_VERSION: 3.22
|
|
R_VERSION: 4.5.0
|
|
|
|
steps:
|
|
- name: 'Build image'
|
|
image: docker.io/woodpeckerci/plugin-docker-buildx:6.0.1
|
|
settings:
|
|
mtu: 1350
|
|
platforms: linux/amd64,linux/arm64
|
|
Dockerfile: docker/Containerfile-${OS}
|
|
repo: devxygmbh/rpkgs-build-env-${OS}
|
|
tags: ${OS_VERSION}-${R_VERSION}
|
|
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:
|
|
- OS
|
|
- OS_VERSION
|
|
- R_VERSION
|
|
backend_options:
|
|
kubernetes:
|
|
resources:
|
|
requests:
|
|
memory: 1300Mi
|
|
cpu: 1000m
|
|
limits:
|
|
memory: 1300Mi
|
|
cpu: 2000m
|
|
tolerations:
|
|
- key: 'CI'
|
|
operator: 'Equal'
|
|
value: 'true'
|
|
effect: 'NoSchedule'
|
|
|
|
- name: 'ntfy'
|
|
image: binwiederhier/ntfy:v2.12.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}
|