Skip to content

Commit 2b67928

Browse files
committed
fix: added linux/arm64 and amd64 support in Docker Build
1 parent a8892a5 commit 2b67928

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build-image.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4
1919

20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v3
22+
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
25+
2026
- name: Log in to GitHub Container Registry
2127
uses: docker/login-action@v3
2228
with:
@@ -33,7 +39,9 @@ jobs:
3339
with:
3440
context: .
3541
file: ./Dockerfile
36-
push: true # Push the image after building
42+
platforms: linux/amd64,linux/arm64 # Build for multiple architectures
43+
push: true
3744
tags: |
3845
ghcr.io/${{ env.repo }}:latest
39-
ghcr.io/${{ env.repo }}:${{ github.sha }}
46+
ghc.io/${{ env.repo }}:${{ github.sha }}
47+

0 commit comments

Comments
 (0)