Skip to content

Commit 6e18f35

Browse files
committed
build: enable multi platform build
1 parent 6d8c485 commit 6e18f35

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build-push.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,17 @@ jobs:
4545
with:
4646
registry-type: public
4747

48+
- name: Set up Docker Buildx
49+
uses: docker/setup-buildx-action@v3
50+
4851
- name: Build & Push Image
4952
uses: docker/build-push-action@v6
5053
with:
5154
load: true
5255
push: true
56+
platform:
57+
- linux/amd64
58+
- linux/arm64
5359
tags: ${{ steps.login-ecr-public.outputs.registry }}/${{ vars.ECS_REGISTRY_ALIAS }}/${{ vars.ECS_REPOSITORY_NAME }}:${{ steps.extract_refs.outputs.tag }}
5460
cache-from: type=local,src=/tmp/.buildx-cache
5561
cache-to: type=local,dest=/tmp/.buildx-cache-new

0 commit comments

Comments
 (0)