Skip to content

Commit

Permalink
ci: don't push images from PRs
Browse files Browse the repository at this point in the history
Fixes #203
Helps #200 (need to manually delete images)
  • Loading branch information
gadomski committed Feb 2, 2022
1 parent 9aefabf commit 8ddf658
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ jobs:
context: .
file: docker/Dockerfile
target: main
# Don't try to push if the event is a PR from a fork or the user is dependabot
push: ${{ github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot') }}
# Don't try to push if the event is a PR, from a fork, or the user is dependabot
push: ${{ github.event_name != 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot') }}
tags: ${{ steps.meta-main.outputs.tags }}
labels: ${{ steps.meta-main.outputs.labels }}
- name: Docker meta dev
Expand All @@ -112,7 +112,7 @@ jobs:
context: .
file: docker/Dockerfile
target: dev
# Don't try to push if the event is a PR from a fork
push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
# Don't try to push if the event is a PR or from a fork
push: ${{ github.event_name != 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}
tags: ${{ steps.meta-dev.outputs.tags }}
labels: ${{ steps.meta-dev.outputs.labels }}

0 comments on commit 8ddf658

Please sign in to comment.