From 1881b137ef1daba159ee3eecdf0e2927aa1a18a0 Mon Sep 17 00:00:00 2001 From: Marcelo Dellacroce Mansur Date: Sat, 17 Jul 2021 18:32:12 -0300 Subject: [PATCH] ci: change push step to trgger only with tags --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f3a642..fb7fde8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,8 +44,7 @@ jobs: push: name: Publish image on dockerhub - # if: startsWith(github.ref, 'refs/tags/v') - if: github.ref == 'refs/heads/main' + if: startsWith(github.ref, 'refs/tags/v') needs: scan runs-on: ubuntu-18.04 steps: