From 801f019eb9e56f1d0f9c54277b799ae6309b674a Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Fri, 13 Jan 2023 11:05:56 +0900 Subject: [PATCH] Only push docker image on push or tag --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a1a62a1..718cb42 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -171,7 +171,7 @@ jobs: with: context: . file: docker/Dockerfile - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' }} platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}