From 12df9134d282a147692639347ef77a3ece5890a8 Mon Sep 17 00:00:00 2001 From: Chris Doherty Date: Tue, 15 Nov 2022 09:55:50 -0500 Subject: [PATCH] Push when branch matches a version Signed-off-by: Chris Doherty --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 692c8f06..b9638664 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 }} @@ -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