Skip to content

Commit

Permalink
ci: change push step to trgger only with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelomansur committed Jul 17, 2021
1 parent 1457c4b commit 1881b13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1881b13

Please sign in to comment.