From c82babe9c77d39ae254447d818450b2bbbdd6b5a Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Thu, 15 Jun 2023 18:07:17 +0100 Subject: [PATCH] Fix container builds on forks This PR changes the 'build-and-push-to-registry' workflow to only run on the Pine64 repository, which prevents image pushing errors occurring. By doing this, we ensure the container images only come from the Pine64 OpenPineBuds repository. --- .github/workflows/build-and-push-to-registry.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-push-to-registry.yml b/.github/workflows/build-and-push-to-registry.yml index 8d06e56..2adc7b6 100644 --- a/.github/workflows/build-and-push-to-registry.yml +++ b/.github/workflows/build-and-push-to-registry.yml @@ -9,6 +9,7 @@ concurrency: jobs: build-and-push-images: + if: ${{ github.repository == 'pine64/OpenPineBuds' }} name: Build and push container image for PineBuds Pro SDK to GHCR.io runs-on: ubuntu-latest steps: