Skip to content

Commit 42748fb

Browse files
authored
feat: build both amd64 (= amd64/v2) and amd64/v3 images (#38)
* feat: build both amd64/v2 and amd64/v3 images * Use underscore for amd_v2/3, and merge all in base-manifest * Update registry image tag to use AMD64_V2 digest for name * Build eic for amd64_v3 too
1 parent f5b70d9 commit 42748fb

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/build-push.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,14 @@ jobs:
6363
include:
6464
- BASE_IMAGE: debian:stable-slim
6565
BUILD_IMAGE: debian_stable_base
66-
PLATFORM: linux/amd64
66+
PLATFORM: linux/amd64
6767
runner: ubuntu-latest
6868
arch: amd64
69+
- BASE_IMAGE: debian:stable-slim
70+
BUILD_IMAGE: debian_stable_base
71+
PLATFORM: linux/amd64/v3
72+
runner: ubuntu-latest
73+
arch: amd64_v3
6974
- BASE_IMAGE: debian:stable-slim
7075
BUILD_IMAGE: debian_stable_base
7176
PLATFORM: linux/arm64
@@ -113,7 +118,7 @@ jobs:
113118
- name: Set up QEMU
114119
uses: docker/setup-qemu-action@v3
115120
with:
116-
platforms: linux/amd64,linux/arm64
121+
platforms: linux/amd64,linux/amd64/v3,linux/arm64
117122
- name: Set up Docker Buildx
118123
uses: docker/setup-buildx-action@v3
119124
id: buildx
@@ -237,6 +242,7 @@ jobs:
237242
run: |
238243
# Read the digests from the files
239244
DIGEST_AMD64=$(cat /tmp/digests/amd64.digest)
245+
DIGEST_AMD64_V3=$(cat /tmp/digests/amd64_v3.digest)
240246
DIGEST_ARM64=$(cat /tmp/digests/arm64.digest)
241247
# Get the base image name from the digests (they'll be the same)
242248
REGISTRY_IMAGE_TAG=$(echo $DIGEST_AMD64 | cut -d'@' -f1)
@@ -248,11 +254,13 @@ jobs:
248254
echo "Image Name: $IMAGE"
249255
echo "Tag Name: $TAG"
250256
echo "AMD64 Digest: $DIGEST_AMD64"
257+
echo "AMD64_V3 Digest: $DIGEST_AMD64_V3"
251258
echo "ARM64 Digest: $DIGEST_ARM64"
252259
echo "registry=$REGISTRY" >> $GITHUB_OUTPUT
253260
echo "image=$IMAGE" >> $GITHUB_OUTPUT
254261
echo "tag=$TAG" >> $GITHUB_OUTPUT
255262
echo "amd64=$DIGEST_AMD64" >> $GITHUB_OUTPUT
263+
echo "amd64_v3=$DIGEST_AMD64_V3" >> $GITHUB_OUTPUT
256264
echo "arm64=$DIGEST_ARM64" >> $GITHUB_OUTPUT
257265
- name: Extract Docker metadata for final tags
258266
id: meta
@@ -276,6 +284,7 @@ jobs:
276284
docker buildx imagetools create \
277285
$TAG_ARGS \
278286
${{ steps.digests.outputs.amd64 }} \
287+
${{ steps.digests.outputs.amd64_v3 }} \
279288
${{ steps.digests.outputs.arm64 }}
280289
281290
eic:
@@ -289,11 +298,14 @@ jobs:
289298
BUILDER_IMAGE: [debian_stable_base]
290299
RUNTIME_IMAGE: [debian_stable_base]
291300
ENV: [ci, xl]
292-
arch: [amd64, arm64]
301+
arch: [amd64, amd64_v3, arm64]
293302
include:
294303
- arch: amd64
295304
runner: ubuntu-latest
296305
PLATFORM: linux/amd64
306+
- arch: amd64_v3
307+
runner: ubuntu-latest
308+
PLATFORM: linux/amd64/v3
297309
- arch: arm64
298310
runner: ubuntu-24.04-arm
299311
PLATFORM: linux/arm64
@@ -333,7 +345,7 @@ jobs:
333345
- name: Set up QEMU
334346
uses: docker/setup-qemu-action@v3
335347
with:
336-
platforms: linux/amd64,linux/arm64
348+
platforms: linux/amd64,linux/amd64/v3,linux/arm64
337349
- name: Set up Docker Buildx
338350
uses: docker/setup-buildx-action@v3
339351
id: buildx
@@ -470,6 +482,7 @@ jobs:
470482
run: |
471483
# Read the digests from the files
472484
DIGEST_AMD64=$(cat /tmp/digests/amd64.digest)
485+
DIGEST_AMD64_V3=$(cat /tmp/digests/amd64_v3.digest)
473486
DIGEST_ARM64=$(cat /tmp/digests/arm64.digest)
474487
# Get the base image name from the digests (they'll be the same)
475488
REGISTRY_IMAGE_TAG=$(echo $DIGEST_AMD64 | cut -d'@' -f1)
@@ -481,11 +494,13 @@ jobs:
481494
echo "Image Name: $IMAGE"
482495
echo "Tag Name: $TAG"
483496
echo "AMD64 Digest: $DIGEST_AMD64"
497+
echo "AMD64_V3 Digest: $DIGEST_AMD64_V3"
484498
echo "ARM64 Digest: $DIGEST_ARM64"
485499
echo "registry=$REGISTRY" >> $GITHUB_OUTPUT
486500
echo "image=$IMAGE" >> $GITHUB_OUTPUT
487501
echo "tag=$TAG" >> $GITHUB_OUTPUT
488502
echo "amd64=$DIGEST_AMD64" >> $GITHUB_OUTPUT
503+
echo "amd64_v3=$DIGEST_AMD64_V3" >> $GITHUB_OUTPUT
489504
echo "arm64=$DIGEST_ARM64" >> $GITHUB_OUTPUT
490505
- name: Extract Docker metadata for final tags
491506
id: meta
@@ -509,4 +524,5 @@ jobs:
509524
docker buildx imagetools create \
510525
$TAG_ARGS \
511526
${{ steps.digests.outputs.amd64 }} \
527+
${{ steps.digests.outputs.amd64_v3 }} \
512528
${{ steps.digests.outputs.arm64 }}

0 commit comments

Comments
 (0)