Skip to content

Commit

Permalink
Publish image on tags only
Browse files Browse the repository at this point in the history
  • Loading branch information
arunvelsriram committed Apr 11, 2024
1 parent bda23e6 commit cf221b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
publish-production-image:
runs-on: ubuntu-20.04
needs: [check-linux-amd64-image, check-linux-arm64-image]
if: ${{ github.ref == 'refs/heads/master' }}
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -84,4 +84,4 @@ jobs:
with:
push: true
platforms: linux/amd64,linux/arm64
tags: arunvelsriram/utils:latest
tags: arunvelsriram/utils:${{github.ref_name}},arunvelsriram/utils:latest

0 comments on commit cf221b6

Please sign in to comment.