Skip to content

Commit 81933b9

Browse files
authored
Add linux/arm64 docker image build support (#774)
1 parent 7cbc917 commit 81933b9

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/build-and-push.yaml

+11-5
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@ jobs:
2323

2424
steps:
2525
- name: Checkout Repository
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
27+
28+
- name: Set up QEMU
29+
uses: docker/setup-qemu-action@v3
2730

2831
- name: Set up Docker Buildx
29-
uses: docker/setup-buildx-action@v2
32+
uses: docker/setup-buildx-action@v3
3033

3134
- name: Determine tags
3235
id: metadata
33-
uses: docker/metadata-action@v4
36+
uses: docker/metadata-action@v5
3437
with:
3538
images: ${{ env.registry }}/${{ env.image-name }}
3639
tags: |
@@ -42,15 +45,18 @@ jobs:
4245
type=raw,value=latest,enable={{ is_default_branch }}
4346
4447
- name: Log in to the Container registry
45-
uses: docker/login-action@v2.1.0
48+
uses: docker/login-action@v3
4649
with:
4750
registry: ${{ env.registry }}
4851
username: ${{ github.actor }}
4952
password: ${{ secrets.GITHUB_TOKEN }}
5053

5154
- name: Build and push ${{ env.image-name }}
52-
uses: docker/build-push-action@v3
55+
uses: docker/build-push-action@v6
5356
with:
57+
context: .
58+
platforms: linux/amd64,linux/arm64
59+
provenance: false
5460
push: true
5561
tags: ${{ steps.metadata.outputs.tags }}
5662
labels: ${{ steps.metadata.outputs.labels }}

0 commit comments

Comments
 (0)