Skip to content

Commit f4c1a0e

Browse files
committed
Enhance Docker workflow with multi-arch build platform detection
1 parent e13e79e commit f4c1a0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ jobs:
1818
uses: docker/setup-qemu-action@v3
1919

2020
- name: Set up Docker Buildx
21+
id: buildx
2122
uses: docker/setup-buildx-action@v3
23+
with:
24+
version: latest
25+
26+
- name: Available platforms
27+
run: echo ${{ steps.buildx.outputs.platforms }}
2228

2329
- name: Login to Docker Hub
2430
uses: docker/login-action@v3
@@ -37,6 +43,7 @@ jobs:
3743
file: ./frontend/Dockerfile.prod
3844
push: true
3945
platforms: linux/amd64,linux/arm64
46+
builder: ${{ steps.buildx.outputs.name }}
4047
tags: |
4148
bangertech/bambucam-frontend:latest
4249
bangertech/bambucam-frontend:${{ steps.tag.outputs.TAG }}
@@ -48,6 +55,7 @@ jobs:
4855
file: ./backend/Dockerfile.prod
4956
push: true
5057
platforms: linux/amd64,linux/arm64
58+
builder: ${{ steps.buildx.outputs.name }}
5159
tags: |
5260
bangertech/bambucam-backend:latest
5361
bangertech/bambucam-backend:${{ steps.tag.outputs.TAG }}

0 commit comments

Comments
 (0)