From 6888f19e9c02b70ccb369f869441f8ae0c88eabb Mon Sep 17 00:00:00 2001 From: Dick Wolff <5620002+dickwolff@users.noreply.github.com> Date: Thu, 1 Feb 2024 09:34:29 +0100 Subject: [PATCH] No push when PR build, fix tags --- .github/workflows/docker.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3ce3f71..b8cc112 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -38,6 +38,8 @@ jobs: - name: Build and push uses: docker/build-push-action@v5 - with: - push: true - tags: dickwolff/export-to-ghostfolio:latest ${{ env.GitVersion_MajorMinorPatch }} + with: + push: ${{ github.event_name != 'pull_request' }} + tags: | + dickwolff/export-to-ghostfolio:latest + dickwolff/export-to-ghostfolio:${{ env.GitVersion_MajorMinorPatch }}