From 30e63ae4e78e21b4bef23809f9d91c9f7b59cc97 Mon Sep 17 00:00:00 2001 From: swissbuechi Date: Fri, 10 Nov 2023 13:32:51 +0100 Subject: [PATCH] Only push on release --- .github/workflows/docker-build-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-image.yml b/.github/workflows/docker-build-image.yml index ef332e4..65e09ba 100644 --- a/.github/workflows/docker-build-image.yml +++ b/.github/workflows/docker-build-image.yml @@ -3,6 +3,7 @@ name: Docker image build and push on: release: types: [published] + push: permissions: contents: read @@ -52,7 +53,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - push: true + push: ${{ github.event_name == 'release' }} file: ${{ matrix.dockerfile }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file