Skip to content

Commit 3cd15d6

Browse files
committed
ci(docker): skip login on pull requests
1 parent 29783ed commit 3cd15d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docker.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242

4343
- name: Login to GitHub Container Registry
4444
uses: docker/login-action@v2
45+
if: "github.event_name != 'pull_request'"
4546
with:
4647
registry: ghcr.io
4748
username: ${{ github.repository_owner }}
@@ -55,7 +56,7 @@ jobs:
5556
sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:1}',/" config/app.php
5657
5758
- name: Build and Push
58-
uses: docker/build-push-action@v3
59+
uses: docker/build-push-action@v4
5960
with:
6061
context: .
6162
file: ./Dockerfile

0 commit comments

Comments
 (0)