Skip to content

Commit 8ab25bb

Browse files
committed
build: Support multi platform with qemu
1 parent ea8cf8b commit 8ab25bb

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/build-push.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
with:
1717
fetch-depth: 1
1818

19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v3
21+
1922
- name: Set up Docker Buildx
2023
uses: docker/setup-buildx-action@v3
2124

@@ -45,15 +48,10 @@ jobs:
4548
with:
4649
registry-type: public
4750

48-
- name: Set up Docker Buildx
49-
uses: docker/setup-buildx-action@v3
50-
with:
51-
platforms: "linux/amd64,linux/arm64"
52-
5351
- name: Build & Push Image
5452
uses: docker/build-push-action@v6
5553
with:
56-
load: true
54+
platforms: linux/amd64,linux/arm64
5755
push: true
5856
tags: ${{ steps.login-ecr-public.outputs.registry }}/${{ vars.ECS_REGISTRY_ALIAS }}/${{ vars.ECS_REPOSITORY_NAME }}:${{ steps.extract_refs.outputs.tag }}
5957
cache-from: type=local,src=/tmp/.buildx-cache

0 commit comments

Comments
 (0)