Skip to content

Commit d603d97

Browse files
authored
Merge pull request #16 from cupofpython/build-cloud
fix build cloud
2 parents 99b3398 + 3d0bde9 commit d603d97

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

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

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,20 @@ jobs:
2828
with:
2929
username: ${{ env.USERNAME }}
3030
password: ${{ env.PASSWORD }}
31-
32-
- name: Build and push the Docker image
33-
run: |
34-
docker buildx build --builder cloud-demonstrationorg-default -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.IMAGE_TAG }} .
35-
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.IMAGE_TAG }}
31+
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+
39+
- name: Build and push
40+
uses: docker/build-push-action@v6
41+
with:
42+
push: true
43+
platforms: linux/amd64
44+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.IMAGE_TAG }}
3645

3746

3847

0 commit comments

Comments
 (0)