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.
This commit is contained in:
Dom Rodriguez 2023-06-15 18:07:17 +01:00
parent 73a0cebe0e
commit c82babe9c7
No known key found for this signature in database
GPG Key ID: 72DCF1231E54BD43
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ concurrency:
jobs: jobs:
build-and-push-images: build-and-push-images:
if: ${{ github.repository == 'pine64/OpenPineBuds' }}
name: Build and push container image for PineBuds Pro SDK to GHCR.io name: Build and push container image for PineBuds Pro SDK to GHCR.io
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: