oci-images/.woodpecker/strichliste.yaml
Fritz Grimpen 1b9c831d4e
All checks were successful
ci/woodpecker/push/keycloak Pipeline was successful
ci/woodpecker/push/strichliste Pipeline was successful
ci/woodpecker/push/mediawiki Pipeline was successful
CI: Convert to new secret syntax of Woodpecker CI
2024-12-22 14:58:01 +01:00

26 lines
961 B
YAML

when:
- event: push
branch: main
path:
- "strichliste/**"
- ".woodpecker/strichliste.yaml"
- event: tag
ref: "refs/tags/strichliste/*"
steps:
- name: build
image: quay.io/buildah/stable
commands:
- buildah build --manifest dev.ccchb.de/ccchb/oci-images/strichliste strichliste/
- buildah manifest push --all dev.ccchb.de/ccchb/oci-images/strichliste oci-archive:/woodpecker/image.tar
privileged: true
- name: push
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/strichliste:$${CI_COMMIT_TAG##strichliste/}"
- "skopeo copy --dest-creds ccchb:$${FORGEJO_API_TOKEN} oci-archive:/woodpecker/image.tar docker://dev.ccchb.de/ccchb/oci-images/strichliste:latest"
environment:
FORGEJO_API_TOKEN:
from_secret: FORGEJO_API_TOKEN
when:
event: tag