Skip to content

Commit 14bf27c

Browse files
committed
Build image also for arm64 platform
Signed-off-by: Norman Ziegner <n.ziegner@hzdr.de>
1 parent f9a3187 commit 14bf27c

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,31 @@ jobs:
2222
version: ["24.04", "22.04", "20.04"]
2323

2424
steps:
25+
- name: Set up QEMU
26+
uses: docker/setup-qemu-action@v3
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
2531
- name: Checkout repository
2632
uses: actions/checkout@v4
2733

2834
- name: Extract metadata (tags, labels) for Docker
2935
id: meta
30-
uses: docker/metadata-action@v5.5.1
36+
uses: docker/metadata-action@v5
3137
with:
3238
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3339
tags: |
3440
type=raw,value=${{ matrix.version }}
3541
3642
- name: Build and push Docker image
37-
uses: docker/build-push-action@v6.9.0
43+
uses: docker/build-push-action@v6
3844
with:
3945
context: .
4046
push: false
4147
build-args: VERSION=${{ matrix.version }}
4248
tags: ${{ steps.meta.outputs.tags }}
4349
labels: ${{ steps.meta.outputs.labels }}
50+
platforms: linux/amd64,linux/arm64
4451

4552
...

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,38 @@ jobs:
2929
version: ["24.04", "22.04", "20.04"]
3030

3131
steps:
32+
- name: Set up QEMU
33+
uses: docker/setup-qemu-action@v3
34+
35+
- name: Set up Docker Buildx
36+
uses: docker/setup-buildx-action@v3
37+
3238
- name: Checkout repository
3339
uses: actions/checkout@v4
3440

3541
- name: Log in to the Container registry
36-
uses: docker/login-action@v3.3.0
42+
uses: docker/login-action@v3
3743
with:
3844
registry: ${{ env.REGISTRY }}
3945
username: ${{ github.actor }}
4046
password: ${{ secrets.GITHUB_TOKEN }}
4147

4248
- name: Extract metadata (tags, labels) for Docker
4349
id: meta
44-
uses: docker/metadata-action@v5.5.1
50+
uses: docker/metadata-action@v5
4551
with:
4652
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4753
tags: |
4854
type=raw,value=${{ matrix.version }}
4955
5056
- name: Build and push Docker image
51-
uses: docker/build-push-action@v6.9.0
57+
uses: docker/build-push-action@v6
5258
with:
5359
context: .
5460
push: true
5561
build-args: VERSION=${{ matrix.version }}
5662
tags: ${{ steps.meta.outputs.tags }}
5763
labels: ${{ steps.meta.outputs.labels }}
64+
platforms: linux/amd64,linux/arm64
5865

5966
...

0 commit comments

Comments
 (0)