Skip to content

Commit 1f60483

Browse files
committed
Can we build all maintained images as multi-arch?
1 parent 09f7d1f commit 1f60483

File tree

3 files changed

+48
-8
lines changed

3 files changed

+48
-8
lines changed

.github/workflows/images.yaml

+44
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,50 @@ jobs:
224224
push: true
225225
cache-from: type=gha
226226
cache-to: type=gha,mode=max
227+
-
228+
name: Build and push headless-chrome latest
229+
uses: docker/build-push-action@v5
230+
env:
231+
SOURCE_DATE_EPOCH: 0
232+
with:
233+
context: headless-chrome
234+
tags: |
235+
ghcr.io/yolean/headless-chrome:latest
236+
ghcr.io/yolean/headless-chrome:${{ github.sha }}
237+
platforms: linux/amd64,linux/arm64/v8
238+
push: true
239+
cache-from: type=gha
240+
cache-to: type=gha,mode=max
241+
build-contexts: |
242+
yolean/docker-base=docker-image://ghcr.io/yolean/docker-base
243+
-
244+
name: Build and push git-http-readonly latest
245+
uses: docker/build-push-action@v5
246+
env:
247+
SOURCE_DATE_EPOCH: 0
248+
with:
249+
context: git-http-readonly
250+
tags: |
251+
ghcr.io/yolean/git-http-readonly:latest
252+
ghcr.io/yolean/git-http-readonly:${{ github.sha }}
253+
platforms: linux/amd64,linux/arm64/v8
254+
push: true
255+
cache-from: type=gha
256+
cache-to: type=gha,mode=max
257+
-
258+
name: Build and push runtime-quarkus latest
259+
uses: docker/build-push-action@v5
260+
env:
261+
SOURCE_DATE_EPOCH: 0
262+
with:
263+
context: runtime-quarkus
264+
tags: |
265+
ghcr.io/yolean/runtime-quarkus:latest
266+
ghcr.io/yolean/runtime-quarkus:${{ github.sha }}
267+
platforms: linux/amd64,linux/arm64/v8
268+
push: true
269+
cache-from: type=gha
270+
cache-to: type=gha,mode=max
227271
-
228272
name: Build and push java root
229273
uses: docker/build-push-action@v5

git-http-readonly/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM httpd:2.4.58-bookworm@sha256:ba846154ade27292d216cce2d21f1c7e589f3b66a4a643bff0cdd348efd17aa3
1+
FROM --platform=$TARGETPLATFORM httpd:2.4.58-bookworm@sha256:ba846154ade27292d216cce2d21f1c7e589f3b66a4a643bff0cdd348efd17aa3
22

33
RUN set -ex; \
44
export DEBIAN_FRONTEND=noninteractive; \

test.sh

+3-7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ toil-network
2929
node-distroless
3030
blobs
3131
headless-chrome
32+
git-http-readonly
33+
runtime-quarkus
3234
"
3335

3436
MULTIARCH_TONONROOT="
@@ -44,11 +46,9 @@ runtime-quarkus-dev
4446
toil-storage
4547
"
4648

47-
AMD64ONLY="
48-
runtime-quarkus
49+
DEPRECATED="
4950
runtime-quarkus-deno
5051
runtime-deno
51-
git-http-readonly
5252
"
5353

5454
BEGIN=" ### build steps below are generated ###"
@@ -104,10 +104,6 @@ for CONTEXT in $MULTIARCH_TONONROOT; do
104104
add_dependencies "to-nonroot/$CONTEXT" >> $ACTIONS
105105
done
106106
107-
for CONTEXT in $AMD64ONLY; do
108-
echo "# TODO does $CONTEXT really need to be amd64-only?" >&2
109-
done
110-
111107
cp $ACTIONS $CURRENT
112108
GIT_STATUS=$(git status --untracked-files=no --porcelain=v2)
113109
[ -z "$GIT_STATUS" ] && echo "Done, no local diff" || echo "Done, with local diff"

0 commit comments

Comments
 (0)