Skip to content

Commit 98eac66

Browse files
Update Docker workflow for multi-architecture builds
1 parent 4001c21 commit 98eac66

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/docker.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v4
1414

15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v3
17+
1518
- name: Set up Docker Buildx
1619
uses: docker/setup-buildx-action@v3
1720

@@ -21,17 +24,12 @@ jobs:
2124
username: ${{ secrets.DOCKERHUB_USERNAME }}
2225
password: ${{ secrets.DOCKERHUB_TOKEN }}
2326

24-
- name: Build and push (latest)
27+
- name: Build and push (multi-arch)
2528
uses: docker/build-push-action@v6
2629
with:
2730
context: ./docker
2831
push: true
29-
tags: jsonviewertool/json-viewer-tool:latest
30-
31-
# - name: Sync README to Docker Hub
32-
# uses: peter-evans/dockerhub-description@v4
33-
# with:
34-
# username: ${{ secrets.DOCKERHUB_USERNAME }}
35-
# password: ${{ secrets.DOCKERHUB_TOKEN }}
36-
# repository: jsonviewertool/json-viewer-tool
37-
# readme-filepath: ./README.md
32+
platforms: linux/amd64,linux/arm64
33+
tags: |
34+
jsonviewertool/json-viewer-tool:latest
35+
jsonviewertool/json-viewer-tool:${{ github.sha }}

0 commit comments

Comments
 (0)