32 lines
955 B
YAML
32 lines
955 B
YAML
when:
|
|
- event: [cron, push]
|
|
|
|
matrix:
|
|
IMAGE:
|
|
- keycloak
|
|
- dnssec-signer
|
|
- mediawiki
|
|
- strichliste
|
|
|
|
steps:
|
|
- name: build
|
|
image: quay.io/buildah/stable
|
|
commands:
|
|
- rm /home/build/.config/containers/storage.conf
|
|
- buildah build --manifest dev.ccchb.de/ccchb/oci-images/${IMAGE} ${IMAGE}/
|
|
- buildah manifest push --all dev.ccchb.de/ccchb/oci-images/${IMAGE} oci-archive:/woodpecker/image.tar
|
|
backend_options:
|
|
kubernetes:
|
|
securityContext:
|
|
runAsUser: 1000
|
|
annotations:
|
|
io.kubernetes.cri-o.Devices: /dev/fuse
|
|
labels:
|
|
app.kubernetes.io/name: builder
|
|
- name: push_latest
|
|
image: quay.io/skopeo/stable
|
|
commands:
|
|
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/${IMAGE}:latest"
|
|
environment:
|
|
FORGEJO_API_TOKEN:
|
|
from_secret: FORGEJO_API_TOKEN
|