💚 CI won't push to docker on PRs from forks

If not from fork it still will. Since that's how it was set by ajnart.
This commit is contained in:
Chris
2022-05-15 21:35:23 -04:00
committed by ajnart
parent 1aaa575480
commit 7662c11bb5
2 changed files with 5 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ on:
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- '.github/pull_request_template.md'
- 'CONDE_OF_CUNDUCT.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'

View File

@@ -9,7 +9,7 @@ on:
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- '.github/pull_request_template.md'
- 'CONDE_OF_CUNDUCT.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'
@@ -17,7 +17,7 @@ on:
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- '.github/pull_request_template.md'
- 'CONDE_OF_CUNDUCT.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'
@@ -114,6 +114,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
if: github.event_name != 'pull_request' || github.base_ref == github.head_ref
uses: docker/login-action@v2
with:
registry: ghcr.io
@@ -125,6 +126,6 @@ jobs:
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
context: .
push: true
push: ${{ github.event_name != 'pull_request' || github.base_ref == github.head_ref }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}