Skip to content

Commit

Permalink
Do not push PR images
Browse files Browse the repository at this point in the history
Push will fail anyways with `403` when pushing from a fork
  • Loading branch information
damyan committed Sep 25, 2024
1 parent 30885e4 commit e626eb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
version: latest
endpoint: builders
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.registry }}
Expand All @@ -70,6 +71,6 @@ jobs:
with:
context: .
platforms: ${{ env.platforms }}
push: true
if: github.event_name != 'pull_request'
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit e626eb5

Please sign in to comment.