Skip to content

Commit d390d00

Browse files
committed
set up buildx and specify platfrom
1 parent 5f1bd2c commit d390d00

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ jobs:
2929
username: ${{ env.USERNAME }}
3030
password: ${{ env.PASSWORD }}
3131

32+
- name: Set up Docker Buildx
33+
uses: docker/setup-buildx-action@v3
34+
with:
35+
driver: cloud
36+
endpoint: "demonstrationorg/default"
37+
install: true
38+
3239
- name: Build and push
3340
uses: docker/build-push-action@v6
3441
with:
3542
push: true
43+
platforms: linux/amd64
3644
builder: cloud-demonstrationorg-default
3745
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.IMAGE_TAG }}
3846

0 commit comments

Comments
 (0)