@@ -13,10 +13,16 @@ jobs:
1313 - name : Checkout repository
1414 uses : actions/checkout@v4
1515
16+ - name : Set up QEMU
17+ uses : docker/setup-qemu-action@v3
18+
19+ - name : Set up Docker Buildx
20+ uses : docker/setup-buildx-action@v3
21+
1622 - name : Log in to Docker Hub
1723 uses : docker/login-action@v3
1824 with :
19- username : ${{ secrets.DOCKERHUB_USERNAME }}
25+ username : ${{ github.repository_owner }}
2026 password : ${{ secrets.DOCKERHUB_TOKEN }}
2127
2228 - name : Log in to GitHub Container Registry
@@ -34,14 +40,18 @@ jobs:
3440 uses : docker/build-push-action@v5
3541 with :
3642 push : true
43+ platforms : linux/amd64,linux/arm64
44+ build-args : VERSION=${{ env.TAG }}
3745 tags : |
38- ${{ secrets.DOCKERHUB_USERNAME }}/jam:${{ env.TAG }}
39- ${{ secrets.DOCKERHUB_USERNAME }}/jam:latest
46+ ${{ github.repository_owner }}/jam:${{ env.TAG }}
47+ ${{ github.repository_owner }}/jam:latest
4048
4149 - name : Build and push Docker image to GitHub Container Registry
4250 uses : docker/build-push-action@v5
4351 with :
4452 push : true
53+ platforms : linux/amd64,linux/arm64
54+ build-args : VERSION=${{ env.TAG }}
4555 tags : |
4656 ghcr.io/${{ github.repository_owner }}/jam:${{ env.TAG }}
4757 ghcr.io/${{ github.repository_owner }}/jam:latest
6373 uses : softprops/action-gh-release@v1
6474 with :
6575 tag_name : ${{ env.TAG }}
66- name : Release ${{ env.TAG }}
76+ name : ${{ env.TAG }}
6777 body : ${{ env.CHANGELOG }}
6878 draft : false
6979 prerelease : false
0 commit comments