setup automated Keycloak image builds with Woodpecker, kaniko and crane
All checks were successful
ci/woodpecker/push/keycloak Pipeline was successful

This way the Keycloak host can simply pull a finished image and doesn't
need to build a Keycloak image itself.

Co-authored-by: c6ristian <c6ristian@christian.moe>
This commit is contained in:
June 2024-07-27 01:16:31 +02:00
commit 00158d0205
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
2 changed files with 70 additions and 0 deletions

14
keycloak/Containerfile Normal file
View file

@ -0,0 +1,14 @@
ARG TAG=latest
FROM quay.io/keycloak/keycloak:${TAG} as builder
ENV KC_DB=postgres
WORKDIR /opt/keycloak
RUN /opt/keycloak/bin/kc.sh build
FROM quay.io/keycloak/keycloak:${TAG}
COPY --from=builder /opt/keycloak/ /opt/keycloak/
# Runtime options to be set in compose directly.
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]