From dcdbe44648cdbf3fff575cfd840f8ae6f9b54ae5 Mon Sep 17 00:00:00 2001 From: Luigi311 Date: Wed, 6 Dec 2023 12:04:32 -0700 Subject: [PATCH] Action: Limit ghcr push to luigi311 Signed-off-by: Luigi311 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5c5bdb..5b9be46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,8 +44,8 @@ jobs: with: images: | ${{ secrets.DOCKER_USERNAME }}/jellyplex-watched,enable=${{ secrets.DOCKER_USERNAME != '' }} - # Do not push to ghcr.io on PRs due to permission issues - ghcr.io/${{ github.repository }},enable=${{ github.event_name != 'pull_request' }} + # Do not push to ghcr.io on PRs due to permission issues, only push if the owner is luigi311 so it doesnt fail on forks + ghcr.io/${{ github.repository }},enable=${{ github.event_name != 'pull_request' && github.repository_owner == 'luigi311'}} tags: | type=raw,value=latest,enable=${{ matrix.variant == env.DEFAULT_VARIANT && github.ref_name == github.event.repository.default_branch }} type=raw,value=dev,enable=${{ matrix.variant == env.DEFAULT_VARIANT && github.ref_name == 'dev' }}