From 4eef4bd3d1c5477c286594109c31041bcaf1e234 Mon Sep 17 00:00:00 2001 From: Ganesh Gore Date: Mon, 1 Mar 2021 17:47:02 -0700 Subject: [PATCH] [CI/CD] Skipped container login if branch is not master --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4df847609..586a22730 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -181,6 +181,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - name: Login to GitHub Container Registry + if: ${{ github.ref == 'refs/heads/master' || needs.change_detect.outputs.force_upload }} uses: docker/login-action@v1 with: registry: ghcr.io