From 3cd15d6f2156a4f5e0c14b986c2c0e5967004890 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Tue, 11 Jul 2023 20:52:09 -0600 Subject: [PATCH] ci(docker): skip login on pull requests --- .github/workflows/docker.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 6026b3837..ffa30b349 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -42,6 +42,7 @@ jobs: - name: Login to GitHub Container Registry uses: docker/login-action@v2 + if: "github.event_name != 'pull_request'" with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -55,7 +56,7 @@ jobs: sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:1}',/" config/app.php - name: Build and Push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: context: . file: ./Dockerfile