Skip to content

Commit 8cdbb81

Browse files
authored
Build images for multiple platforms (amd64/arm64) (#2)
1 parent 982bc94 commit 8cdbb81

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,24 @@ jobs:
4141
ref: ${{ steps.params.outputs.ref }}
4242
persist-credentials: false
4343

44+
- name: Set up QEMU
45+
uses: docker/setup-qemu-action@v3
46+
47+
- name: Set up Buildx
48+
id: buildx
49+
uses: docker/setup-buildx-action@v3
50+
4451
- name: Log in to the container registry
4552
uses: docker/login-action@v3
4653
with:
4754
registry: ghcr.io
4855
username: ${{ github.actor }}
4956
password: ${{ secrets.GITHUB_TOKEN }}
5057

51-
- name: Set up Buildx
52-
id: buildx
53-
uses: docker/setup-buildx-action@v3
54-
5558
- name: Build and push
5659
uses: docker/build-push-action@v5
5760
with:
61+
platforms: linux/amd64,linux/arm64
5862
context: .
5963
target: prod
6064
file: Dockerfile

0 commit comments

Comments
 (0)