Skip to content

Commit 9eb753b

Browse files
committed
Update release_image.yml for multi-arch builds
1 parent b156b97 commit 9eb753b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release_image.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,30 @@ jobs:
1919
- name: Checkout repository
2020
uses: actions/checkout@v4
2121

22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
2228
- name: Log in to the Container registry
23-
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446
29+
uses: docker/login-action@v3
2430
with:
2531
registry: ${{ env.REGISTRY }}
2632
username: ${{ github.actor }}
2733
password: ${{ secrets.GITHUB_TOKEN }}
2834

2935
- name: Extract metadata (tags, labels) for Docker
3036
id: meta
31-
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
37+
uses: docker/metadata-action@v5
3238
with:
3339
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3440

3541
- name: Build and push Docker image
36-
uses: docker/build-push-action@1ca370b3a9802c92e886402e0dd88098a2533b12
42+
uses: docker/build-push-action@v6
3743
with:
3844
context: .
45+
platforms: linux/amd64,linux/arm64
3946
target: app-image
4047
push: true
4148
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)