From a341c81751f6f0b4ed70c63942b86f261bb6d815 Mon Sep 17 00:00:00 2001 From: Robert Jacob Date: Mon, 28 Aug 2023 16:24:00 +0200 Subject: [PATCH] Only login to quay if building main (#30) --- .github/workflows/quay.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/quay.yaml b/.github/workflows/quay.yaml index ec96f75..1a7e69f 100644 --- a/.github/workflows/quay.yaml +++ b/.github/workflows/quay.yaml @@ -36,6 +36,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Login to Quay.io uses: docker/login-action@v2 + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: registry: quay.io logout: true