From 41e2ef4537663cbefe8efb4c1da8d39c159b6c84 Mon Sep 17 00:00:00 2001 From: Jeev B Date: Fri, 12 May 2023 08:42:02 -0700 Subject: [PATCH] Only login to GHCR when pushing a single binary image (#3674) Signed-off-by: Jeev B --- .github/workflows/single-binary.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/single-binary.yml b/.github/workflows/single-binary.yml index 284dcc4a1c..a1c19dc283 100644 --- a/.github/workflows/single-binary.yml +++ b/.github/workflows/single-binary.yml @@ -102,6 +102,7 @@ jobs: name: single-binary-image path: docker/sandbox-bundled/images/tar - name: Login to GitHub Container Registry + if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event_name == 'workflow_dispatch' }} uses: docker/login-action@v2 with: registry: ghcr.io