Skip to content

Commit

Permalink
Push when branch matches a version
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Doherty <[email protected]>
  • Loading branch information
chrisdoherty4 committed Nov 15, 2022
1 parent 7000087 commit 12df913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- name: Login to quay.io
uses: docker/login-action@v2
if: ${{ startsWith(github.ref, 'refs/heads/main') }}
if: ${{ startsWith(github.ref, 'refs/heads/main') || startsWith(github.ref_name, 'v') }}
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_USERNAME }}
Expand All @@ -108,6 +108,6 @@ jobs:
with:
context: ./
cache-from: type=registry,ref=${{ env.IMAGE }}:latest
push: ${{ startsWith(github.ref, 'refs/heads/main') }}
push: ${{ startsWith(github.ref, 'refs/heads/main') || startsWith(github.ref_name, 'v') }}
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64

0 comments on commit 12df913

Please sign in to comment.