Skip to content

Commit 38aef62

Browse files
committed
feat: Added support for arm 64 images
1 parent 24df1ef commit 38aef62

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/github-release.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,35 @@ jobs:
3838
tag_name: ${{ steps.get_variables.outputs.VERSION }}
3939
body: ${{ steps.changelog.outputs.changes }}
4040

41+
- name: Set up QEMU
42+
uses: docker/setup-qemu-action@v3
43+
44+
- name: Set up Docker Buildx
45+
uses: docker/setup-buildx-action@v3
46+
4147
- name: Log in to GitHub Container Registry
42-
uses: docker/login-action@v2
48+
uses: docker/login-action@v3
4349
with:
4450
registry: ghcr.io
4551
username: ${{ github.actor }}
4652
password: ${{ secrets.GIT_TOKEN }}
4753

48-
- name: Build and push Docker image to GHCR
49-
uses: docker/build-push-action@v4
54+
- name: Build arm64 image
55+
uses: docker/build-push-action@v5
56+
with:
57+
context: .
58+
push: true
59+
platforms: linux/arm64
60+
tags: |
61+
ghcr.io/${{ github.repository_owner }}/securechain-gateway:latest-arm64
62+
ghcr.io/${{ github.repository_owner }}/securechain-gateway:${{ steps.get_variables.outputs.VERSION }}-arm64
63+
64+
- name: Build amd64 image
65+
uses: docker/build-push-action@v5
5066
with:
5167
context: .
5268
push: true
69+
platforms: linux/amd64
5370
tags: |
5471
ghcr.io/${{ github.repository_owner }}/securechain-gateway:latest
5572
ghcr.io/${{ github.repository_owner }}/securechain-gateway:${{ steps.get_variables.outputs.VERSION }}

0 commit comments

Comments
 (0)