This commit is contained in:
parent
048e2db136
commit
4f1707d612
2 changed files with 7 additions and 20 deletions
|
@ -10,13 +10,6 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
platform:
|
|
||||||
- linux/amd64
|
|
||||||
- linux/arm64
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
@ -51,12 +44,12 @@ jobs:
|
||||||
type=sha
|
type=sha
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
platforms: ${{ matrix.platform }}
|
platforms: linux/amd64,linux/arm64
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
sbom: true
|
sbom: true
|
||||||
provenance: true
|
provenance: true
|
||||||
|
|
12
Dockerfile
12
Dockerfile
|
@ -21,6 +21,9 @@ ENV KC_FEATURES=docker
|
||||||
ENV KC_FEATURES_DISABLED=kerberos,ciba,fips
|
ENV KC_FEATURES_DISABLED=kerberos,ciba,fips
|
||||||
ENV KC_CACHE=local
|
ENV KC_CACHE=local
|
||||||
ENV KC_PROXY=edge
|
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 \
|
# ADD --chown=keycloak:keycloak --chmod=644 \
|
||||||
# https://github.com/wadahiro/keycloak-discord/releases/download/v0.5.0/keycloak-discord-0.5.0.jar \
|
# 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}
|
FROM quay.io/keycloak/keycloak:${KC_VERSION}
|
||||||
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
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"]
|
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
|
Loading…
Reference in a new issue