File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 3434 uses : docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
3535 with :
3636 registry : ${{ env.REGISTRY }}
37- username : ${{ github.actor }}
38- password : ${{ secrets.GHCR_TOKEN }}
37+ username : ${{ secrets.USERNAME }}
38+ password : ${{ secrets.PASSOWRD }}
39+ token : ${{ secrets.GITHUB_TOKEN }}
3940
4041 # Extract metadata (tags, labels) for Docker
4142 # https://github.com/docker/metadata-action
4546 with :
4647 images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4748
48- # Build and push Docker image with Buildx (don't push on PR)
49+ # Push the Docker image to the registry
4950 # https://github.com/docker/build-push-action
50- - name : Build and push Docker image
51- id : build-and-push
52- uses : docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
53- with :
54- context : .
55- push : ${{ github.event_name != 'pull_request' }}
56- tags : ${{ steps.meta.outputs.tags }}
57- labels : ${{ steps.meta.outputs.labels }}
58- cache-from : type=gha
59- cache-to : type=gha,mode=max
51+ - name : Push Docker Image to GHCR
52+ run : |
53+ docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}
54+
You can’t perform that action at this time.
0 commit comments