Skip to content

Commit

Permalink
push docker images when ran from main
Browse files Browse the repository at this point in the history
  • Loading branch information
leonitousconforti committed Oct 9, 2023
1 parent 5287fc5 commit 1662564
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ runs:
uses: docker/setup-buildx-action@v3

- name: "Login to GitHub Container Registry"
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -35,7 +36,7 @@ runs:
uses: docker/build-push-action@v5
with:
context: .
push: false
push: ${{ github.ref == 'refs/heads/main' }}
file: ${{ inputs.DOCKERFILE }}
platforms: linux/amd64,linux/arm64
tags: ghcr.io/leonitousconforti/tinyburg/${{ inputs.PROJECT }}:latest
Expand Down

0 comments on commit 1662564

Please sign in to comment.