From a1245cd381041fe4122add82e11468a8a438d883 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 25 Feb 2021 14:54:14 +0300 Subject: [PATCH] github: publish only released images --- .github/workflows/publish_to_dockerhub.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_to_dockerhub.yml b/.github/workflows/publish_to_dockerhub.yml index 54bef723e..8cd6c2c1d 100644 --- a/.github/workflows/publish_to_dockerhub.yml +++ b/.github/workflows/publish_to_dockerhub.yml @@ -85,5 +85,6 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Push images to registry + - name: Push released images to registry + if: ${{ github.event_name == 'release' }} run: make image-push