File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ jobs:
348348 tags : |
349349 ghcr.io/yolean/headless-chrome:latest
350350 ghcr.io/yolean/headless-chrome:${{ github.sha }}
351- platforms : linux/amd64,linux/arm64/v8
351+ platforms : linux/amd64
352352 push : true
353353 cache-from : |
354354 type=gha,scope=buildx-headless-chrome-latest
Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ runtime-quarkus-deno
6060runtime-deno
6161"
6262
63+ # Images that are only buildable on amd64
64+ SINGLE_ARCH_AMD64=" headless-chrome"
65+
6366BEGIN=" ### build steps below are generated ###"
6467CURRENT=.github/workflows/images.yaml
6568ACTIONS=$( mktemp)
@@ -77,6 +80,15 @@ function base_action {
7780 # Get dependencies for build-contexts
7881 local DEPENDENCIES=" $(( grep - e 'FROM -- platform= $TARGETPLATFORM yolean/ ' - e 'FROM -- platform= $BUILDPLATFORM yolean/ ' $CONTEXT / Dockerfile || true) | cut - d' ' - f3 )"
7982
83+ # Determine platforms (override if in SINGLE_ARCH_AMD64 )
84+ local PLATFORMS="linux/amd64 ,linux/arm64 /v8 "
85+ for ONLY_AMD64 in $SINGLE_ARCH_AMD64 ; do
86+ if [ "$NAME " = "$ONLY_AMD64 " ]; then
87+ PLATFORMS="linux/amd64 "
88+ break
89+ fi
90+ done
91+
8092 cat <<EOF
8193 -
8294 name: Build and push $NAME $TAG
@@ -90,7 +102,7 @@ function base_action {
90102 tags: |
91103 ghcr.io/yolean/$NAME :$TAG
92104 ghcr.io/yolean/$NAME :\${{ github.sha } }$TAGSUFFIX
93- platforms: linux/amd 64 ,linux/arm 64 /v 8
105+ platforms: $PLATFORMS
94106 push: true
95107 cache-from: |
96108 type=gha,scope=$CACHE_KEY_PREFIX
You can’t perform that action at this time.
0 commit comments