oci-images/.woodpecker/keycloak.yaml
Fritz Grimpen e849419273
All checks were successful
ci/woodpecker/push/keycloak Pipeline was successful
ci/woodpecker/tag/keycloak Pipeline was successful
fixup! ci: fix skopeo destination arguments
2024-11-09 01:45:57 +01:00

25 lines
892 B
YAML

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