Skip to content

Commit a973d43

Browse files
committed
using buildx for multiplatform build
1 parent f9559f9 commit a973d43

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

.github/workflows/dockerhub-publish.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,24 @@ jobs:
5757
with:
5858
images: ${{ secrets.DOCKERHUB_NAMESPACE }}/${{ inputs.image_name }}
5959

60+
61+
- name: Set up QEMU
62+
uses: docker/setup-qemu-action@v3
63+
64+
- name: Set up Docker Buildx
65+
uses: docker/setup-buildx-action@v3
66+
with:
67+
platforms: linux/amd64,linux/arm64
68+
6069
- name: Build and push Docker image
6170
id: push
62-
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
71+
uses: docker/build-push-action@v6
6372
with:
64-
context: ${{ inputs.context }}
65-
file: ${{ inputs.file }}
66-
push: true
67-
tags: ${{ steps.meta.outputs.tags }}
68-
labels: ${{ steps.meta.outputs.labels }}
73+
context: ${{ inputs.context }}
74+
file: ${{ inputs.file }}
75+
push: true
76+
tags: ${{ steps.meta.outputs.tags }}
77+
labels: ${{ steps.meta.outputs.labels }}
6978

7079
- name: Generate artifact attestation
7180
uses: actions/attest-build-provenance@v2

.github/workflows/ghcr-publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,17 @@ jobs:
5454
with:
5555
images: ${{ env.REGISTRY }}/${{ env.GH_USERNAME }}/${{ inputs.image_name }}
5656

57+
- name: Set up QEMU
58+
uses: docker/setup-qemu-action@v3
59+
60+
- name: Set up Docker Buildx
61+
uses: docker/setup-buildx-action@v3
62+
with:
63+
platforms: linux/amd64,linux/arm64
64+
5765
- name: Build and push Docker image
5866
id: push
59-
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
67+
uses: docker/build-push-action@v6
6068
with:
6169
context: ${{ inputs.context }}
6270
file: ${{ inputs.file }}

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"cSpell.words": [
33
"amqp",
4+
"buildx",
5+
"Buildx",
46
"Chunck",
57
"cirq",
68
"createdb",

0 commit comments

Comments
 (0)