From e626eb546d16877c0a07a00fc1920b482b3854ba Mon Sep 17 00:00:00 2001 From: Damyan Yordanov Date: Wed, 25 Sep 2024 15:58:51 +0200 Subject: [PATCH] Do not push PR images Push will fail anyways with `403` when pushing from a fork --- .github/workflows/publish-docker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 1684f04..7a72ed6 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -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 }} @@ -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 }}