Skip to content

Commit

Permalink
Merge pull request #31 from mkroening/pr-no-push
Browse files Browse the repository at this point in the history
ci: don't try to push image on PRs
  • Loading branch information
mkroening authored Jun 5, 2024
2 parents a29b9be + 0a4269d commit 3700190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ jobs:
steps:
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/hermit-os/hermit-toolchain:latest

0 comments on commit 3700190

Please sign in to comment.