oci-images/.woodpecker/keycloak.yaml
Fritz Grimpen 967313e292
Some checks failed
ci/woodpecker/push/keycloak Pipeline was successful
ci/woodpecker/tag/keycloak Pipeline failed
quote dollar in woodpecker yaml
2024-11-09 01:31:07 +01:00

26 lines
862 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 login dev.ccchb.de -u ccchb -p $${FORGEJO_API_TOKEN}"
- "skopeo copy oci-archive:/woodpecker/image.tar dev.ccchb.de/ccchb/oci-images/keycloak:$${CI_COMMIT_TAG##keycloak/}"
- "skopeo copy oci-archive:/woodpecker/image.tar dev.ccchb.de/ccchb/oci-images/keycloak:latest"
secrets:
- FORGEJO_API_TOKEN
when:
event: tag