Skip to content

Commit

Permalink
ci(docker): skip login on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpi committed Jul 12, 2023
1 parent 29783ed commit 3cd15d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 3cd15d6

Please sign in to comment.