File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ jobs:
109109 container :
110110 needs : coverage
111111 runs-on : ubuntu-latest
112+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
112113
113114 permissions :
114115 contents : read
@@ -128,12 +129,15 @@ jobs:
128129 - name : Set up Docker Buildx
129130 uses : docker/setup-buildx-action@v3
130131
131- - name : Build and push Docker image to GHCR
132+ - name : Build and push Docker image to GitHub Container Registry
132133 uses : docker/build-push-action@v6
133134 with :
134135 context : .
135136 push : true
137+ platforms : linux/amd64
138+ provenance : false
139+ cache-from : type=gha
140+ cache-to : type=gha,mode=max
136141 tags : |
137142 ghcr.io/${{ env.PACKAGE_NAME }}:latest
138- ghcr.io/${{ env.PACKAGE_NAME }}:main
139143 ghcr.io/${{ env.PACKAGE_NAME }}:sha-${{ github.sha }}
You can’t perform that action at this time.
0 commit comments