Skip to content

Commit 9828f4b

Browse files
committed
Build for both amd64 and arm64
1 parent d982041 commit 9828f4b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ jobs:
4545
- name: Checkout
4646
uses: actions/checkout@v4
4747

48+
- name: Set up QEMU (amd64, arm64)
49+
uses: docker/setup-qemu-action@v3
50+
with:
51+
platforms: amd64,arm64
52+
4853
- name: Set up Docker Buildx
4954
uses: docker/setup-buildx-action@v3
5055

@@ -58,6 +63,7 @@ jobs:
5863
- name: Build and push (${{ matrix.base_version }})
5964
run: |
6065
docker buildx build \
66+
--platform linux/amd64,linux/arm64 \
6167
--build-arg BASE_VERSION=${{ matrix.base_version }} \
6268
--tag $IMAGE_NAME:${{ matrix.base_version }} \
6369
--push \

0 commit comments

Comments
 (0)