Skip to content

Commit 12df913

Browse files
committed
Push when branch matches a version
Signed-off-by: Chris Doherty <[email protected]>
1 parent 7000087 commit 12df913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
9696
- name: Login to quay.io
9797
uses: docker/login-action@v2
98-
if: ${{ startsWith(github.ref, 'refs/heads/main') }}
98+
if: ${{ startsWith(github.ref, 'refs/heads/main') || startsWith(github.ref_name, 'v') }}
9999
with:
100100
registry: ${{ env.REGISTRY }}
101101
username: ${{ secrets.QUAY_USERNAME }}
@@ -108,6 +108,6 @@ jobs:
108108
with:
109109
context: ./
110110
cache-from: type=registry,ref=${{ env.IMAGE }}:latest
111-
push: ${{ startsWith(github.ref, 'refs/heads/main') }}
111+
push: ${{ startsWith(github.ref, 'refs/heads/main') || startsWith(github.ref_name, 'v') }}
112112
tags: ${{ steps.meta.outputs.tags }}
113113
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)