oci-images/.woodpecker/publish.yaml
Fritz Grimpen d84d8bee08
All checks were successful
ci/woodpecker/tag/publish Pipeline was successful
Run publish pipeline for every tag
2025-01-25 01:42:20 +01:00

18 lines
827 B
YAML

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