build refactor
All checks were successful
docker / build-docker (push) Successful in 9m20s

This commit is contained in:
royalcat 2024-07-30 11:32:12 +03:00
parent 048e2db136
commit 4f1707d612
2 changed files with 7 additions and 20 deletions

View file

@ -10,13 +10,6 @@ jobs:
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
@ -51,12 +44,12 @@ jobs:
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
pull: true
platforms: ${{ matrix.platform }}
platforms: linux/amd64,linux/arm64
labels: ${{ steps.meta.outputs.labels }}
sbom: true
provenance: true

View file

@ -21,6 +21,9 @@ ENV KC_FEATURES=docker
ENV KC_FEATURES_DISABLED=kerberos,ciba,fips
ENV KC_CACHE=local
ENV KC_PROXY=edge
ENV KC_FEATURES=docker,hostname:v2
ENV KC_HTTP_ENABLED=true
ENV KC_PROXY_HEADERS=xforwarded
# ADD --chown=keycloak:keycloak --chmod=644 \
# https://github.com/wadahiro/keycloak-discord/releases/download/v0.5.0/keycloak-discord-0.5.0.jar \
@ -35,13 +38,4 @@ RUN /opt/keycloak/bin/kc.sh build
FROM quay.io/keycloak/keycloak:${KC_VERSION}
COPY --from=builder /opt/keycloak/ /opt/keycloak/
ENV KC_HEALTH_ENABLED=true
ENV KC_METRICS_ENABLED=true
ENV KC_DB=postgres
ENV KC_FEATURES=docker,hostname:v2
ENV KC_FEATURES_DISABLED=kerberos,ciba,fips
ENV KC_CACHE=local
ENV KC_HTTP_ENABLED=true
ENV KC_PROXY_HEADERS=xforwarded
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]