move java build process to build container #10
2 changed files with 22 additions and 9 deletions
move java build process to build container
Some checks failed
Build Keycloak / Build Keycloak Image (push) Successful in 2m33s
Build Nextcloud / Build Nextcloud 33 Image (push) Successful in 1m12s
Build Nextcloud / Build Nextcloud 34 Image (push) Successful in 1m10s
Build Keycloak / Build Keycloak Image-1 (push) Successful in 2m13s
Build Keycloak / Build Keycloak Image-2 (push) Successful in 2m32s
Build Penpot / Build Image penpot-backend:2.1.2 (push) Failing after 3m40s
Build Penpot / Build Image penpot-exporter:2.1.2 (push) Failing after 3m36s
Build Penpot / Build Image penpot-frontend:2.1.2 (push) Failing after 3m23s
Some checks failed
Build Keycloak / Build Keycloak Image (push) Successful in 2m33s
Build Nextcloud / Build Nextcloud 33 Image (push) Successful in 1m12s
Build Nextcloud / Build Nextcloud 34 Image (push) Successful in 1m10s
Build Keycloak / Build Keycloak Image-1 (push) Successful in 2m13s
Build Keycloak / Build Keycloak Image-2 (push) Successful in 2m32s
Build Penpot / Build Image penpot-backend:2.1.2 (push) Failing after 3m40s
Build Penpot / Build Image penpot-exporter:2.1.2 (push) Failing after 3m36s
Build Penpot / Build Image penpot-frontend:2.1.2 (push) Failing after 3m23s
commit
8c2b24cd83
|
|
@ -18,18 +18,11 @@ jobs:
|
||||||
keycloak-version: [ 26.6.1, 26.6.2, 26.6.3 ]
|
keycloak-version: [ 26.6.1, 26.6.2, 26.6.3 ]
|
||||||
steps:
|
steps:
|
||||||
- name: Install required system packages
|
- name: Install required system packages
|
||||||
run: apk add --no-cache nodejs maven git
|
run: apk add --no-cache nodejs
|
||||||
|
|
||||||
- name: Checkout Source Code
|
- name: Checkout Source Code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Build attribute-endpoints-provider
|
|
||||||
run: |
|
|
||||||
git clone https://git.hamburg.ccc.de/CCCHH/keycloak-attribute-endpoints-provider.git
|
|
||||||
cd keycloak-attribute-endpoints-provider
|
|
||||||
mvn -f attribute-endpoints-provider verify
|
|
||||||
cp attribute-endpoints-provider/target/attribute-endpoints-provider-1.0-SNAPSHOT.jar ${{ forgejo.workspace }}/keycloak/attribute-endpoints-provider.jar
|
|
||||||
|
|
||||||
- name: Build Container
|
- name: Build Container
|
||||||
env:
|
env:
|
||||||
KANIKO_NO_PUSH: ${{ forgejo.ref_name != 'main' }}
|
KANIKO_NO_PUSH: ${{ forgejo.ref_name != 'main' }}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,33 @@
|
||||||
ARG TAG=latest
|
ARG TAG=latest
|
||||||
|
|
||||||
|
FROM debian:12-slim as attribute-endpoints-provider-builder
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install --no-install-recommends --no-install-suggests -y maven git \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN mkdir /maven
|
||||||
|
RUN git clone https://git.hamburg.ccc.de/CCCHH/keycloak-attribute-endpoints-provider.git /maven/keycloak-attribute-endpoints-provider
|
||||||
|
|
||||||
|
WORKDIR /maven/keycloak-attribute-endpoints-provider
|
||||||
|
|
||||||
|
RUN mvn -f attribute-endpoints-provider verify
|
||||||
|
|
||||||
|
RUN mv attribute-endpoints-provider/target/attribute-endpoints-provider-*.jar /maven/attribute-endpoints-provider.jar
|
||||||
|
|
||||||
|
|
||||||
FROM quay.io/keycloak/keycloak:${TAG} as builder
|
FROM quay.io/keycloak/keycloak:${TAG} as builder
|
||||||
|
|
||||||
ENV KC_DB=postgres
|
ENV KC_DB=postgres
|
||||||
ENV KC_FEATURES=declarative-ui
|
ENV KC_FEATURES=declarative-ui
|
||||||
|
|
||||||
WORKDIR /opt/keycloak
|
WORKDIR /opt/keycloak
|
||||||
ADD --chown=keycloak:keycloak --chmod=644 attribute-endpoints-provider.jar /opt/keycloak/providers/attribute-endpoints-provider.jar
|
|
||||||
|
COPY --from=attribute-endpoints-provider-builder /maven/attribute-endpoints-provider.jar /opt/keycloak/providers/attribute-endpoints-provider.jar
|
||||||
|
|
||||||
RUN /opt/keycloak/bin/kc.sh build
|
RUN /opt/keycloak/bin/kc.sh build
|
||||||
|
|
||||||
|
|
||||||
FROM quay.io/keycloak/keycloak:${TAG}
|
FROM quay.io/keycloak/keycloak:${TAG}
|
||||||
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
COPY --from=builder /opt/keycloak/ /opt/keycloak/
|
||||||
ADD themes/ /opt/keycloak/themes/
|
ADD themes/ /opt/keycloak/themes/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue