From 0a4269d61b71706e5dd60bbe5f93f91bf4ff0ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Wed, 5 Jun 2024 13:58:56 +0200 Subject: [PATCH] ci: don't try to push image on PRs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 485cb25..934bab0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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