From 7662c11bb5e13e24e794f2fa12dc120b303b3a7b Mon Sep 17 00:00:00 2001 From: Chris <15677803+c00ldude1oo@users.noreply.github.com> Date: Sun, 15 May 2022 21:35:23 -0400 Subject: [PATCH] :green_heart: 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. --- .github/workflows/docker.yml | 2 +- .github/workflows/docker_dev.yml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 03b6cd279..61f1e5c88 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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' diff --git a/.github/workflows/docker_dev.yml b/.github/workflows/docker_dev.yml index cd89a54d0..37efbd6fa 100644 --- a/.github/workflows/docker_dev.yml +++ b/.github/workflows/docker_dev.yml @@ -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 }}