This commit is contained in:
parent
048e2db136
commit
4f1707d612
2 changed files with 7 additions and 20 deletions
|
@ -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
|
||||
|
|
16
Dockerfile
16
Dockerfile
|
@ -21,10 +21,13 @@ 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 \
|
||||
# /opt/keycloak/providers/discord.jar
|
||||
# https://github.com/wadahiro/keycloak-discord/releases/download/v0.5.0/keycloak-discord-0.5.0.jar \
|
||||
# /opt/keycloak/providers/discord.jar
|
||||
COPY --from=discord_builder --chown=keycloak:keycloak --chmod=644 \
|
||||
/keycloak-discord/target/keycloak-discord-0.5.1-SNAPSHOT.jar \
|
||||
/opt/keycloak/providers/discord.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"]
|
Loading…
Reference in a new issue