2024-11-08 18:16:59 -06:00
|
|
|
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:
|
2024-11-08 18:21:38 -06:00
|
|
|
- buildah build --manifest dev.ccchb.de/ccchb/oci-images/keycloak keycloak/
|
2024-11-08 18:31:07 -06:00
|
|
|
- buildah manifest push --all dev.ccchb.de/ccchb/oci-images/keycloak oci-archive:/woodpecker/image.tar
|
2024-11-08 18:16:59 -06:00
|
|
|
privileged: true
|
|
|
|
- name: push
|
|
|
|
image: quay.io/skopeo/stable
|
|
|
|
commands:
|
2024-11-08 18:45:57 -06:00
|
|
|
- "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"
|
2024-11-08 18:16:59 -06:00
|
|
|
secrets:
|
|
|
|
- FORGEJO_API_TOKEN
|
|
|
|
when:
|
|
|
|
event: tag
|