File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 16
16
strategy :
17
17
matrix :
18
18
keycloak_version :
19
+ - 26.0.7
19
20
- 26.0.6
20
21
- 25.0.6
21
22
- 25.0.0
@@ -62,20 +63,35 @@ jobs:
62
63
uses : actions/checkout@v3
63
64
with :
64
65
fetch-depth : 0
66
+
67
+ - name : Set up QEMU
68
+ uses : docker/setup-qemu-action@v3
69
+ with :
70
+ platforms : all
71
+
72
+ - name : Set up Docker Buildx
73
+ uses : docker/setup-buildx-action@v3
74
+
65
75
- uses : docker/login-action@v2
66
76
with :
67
77
registry : ${{ env.REGISTRY }}
68
78
username : ${{ github.actor }}
69
79
password : ${{ secrets.GITHUB_TOKEN }}
80
+
70
81
- name : Extract metadata (tags, labels) for Docker
71
82
id : meta
72
83
uses : docker/metadata-action@v4
73
84
with :
74
85
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
86
+
75
87
- uses : docker/build-push-action@v4
76
88
with :
77
89
context : .
78
90
file : ./Dockerfile
91
+ platforms :
92
+ - linux/amd64
93
+ - linux/arm64
94
+ - linux/arm
79
95
push : true
80
96
build-args : |
81
97
"KEYCLOAK_VERSION=${{ matrix.keycloak_version }}"
Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
2
3
- # Keyclaok base image version, set with --build-arg="KEYCLOAK_VERSION=..."
3
+ # Keycloak base image version, set with --build-arg="KEYCLOAK_VERSION=..."
4
4
ARG KEYCLOAK_VERSION
5
+ ARG TARGETPLATFORM
5
6
6
7
# See "Installing additional RPM packages" https://www.keycloak.org/server/containers
7
- FROM registry.access.redhat.com/ubi9 AS ubi-micro-build
8
- ARG DEV_DEPENDECIES="tar gzip util-linux"
8
+ FROM --platform=$TARGETPLATFORM registry.access.redhat.com/ubi9 AS ubi-micro-build
9
+
10
+ ARG DEV_DEPENDENCIES="tar gzip util-linux"
9
11
RUN mkdir -p /mnt/rootfs
10
12
RUN dnf -y update
11
- RUN dnf install --installroot /mnt/rootfs ${DEV_DEPENDECIES } --releasever 9 --setopt install_weak_deps=false --nodocs -y && \
13
+ RUN dnf install --installroot /mnt/rootfs ${DEV_DEPENDENCIES } --releasever 9 --setopt install_weak_deps=false --nodocs -y && \
12
14
dnf --installroot /mnt/rootfs clean all && \
13
15
rpm --root /mnt/rootfs -e --nodeps setup
14
16
15
- FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION}
17
+ FROM --platform=$TARGETPLATFORM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION}
16
18
COPY --from=ubi-micro-build /mnt/rootfs /
17
19
18
20
ENTRYPOINT ["/opt/keycloak/bin/kc.sh" ]
You can’t perform that action at this time.
0 commit comments