A continuation of HomeBox the inventory and organization system built for the Home User
Fix only push for actual branches, not PRs
Matthew Kilgore21f9dadbb010
diff --git a/.github/workflows/docker-publish-rootless.yaml b/.github/workflows/docker-publish-rootless.yamlindex 0590e360..a38046da 100644--- a/.github/workflows/docker-publish-rootless.yaml+++ b/.github/workflows/docker-publish-rootless.yaml@@ -112,7 +112,7 @@ jobs:file: ./Dockerfile.rootless # Explicitly specify the Dockerfileplatforms: ${{ matrix.platform }}labels: ${{ steps.meta.outputs.labels }}- outputs: type=image,"name=${{ env.DOCKERNAMES }}",push-by-digest=true,name-canonical=true,push=true+ outputs: type=image,"name=${{ env.DOCKERNAMES }}",push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }}cache-from: type=registry,ref=ghcr.io/sysadminsmedia/devcache:${{ env.PLATFORM_PAIR }}-${{ env.BRANCH }}-rootlesscache-to: type=registry,ref=ghcr.io/sysadminsmedia/devcache:${{ env.PLATFORM_PAIR }}-${{ env.BRANCH }}-rootless,mode=maxbuild-args: |@@ -121,7 +121,6 @@ jobs:provenance: truesbom: trueannotations: ${{ steps.meta.outputs.annotations }}- push: ${{ github.event_name != 'pull_request' }}- name: Export digestrun: |diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yamlindex 6d8c3e34..296f9d48 100644--- a/.github/workflows/docker-publish.yaml+++ b/.github/workflows/docker-publish.yaml@@ -103,7 +103,7 @@ jobs:with:platforms: ${{ matrix.platform }}labels: ${{ steps.meta.outputs.labels }}- outputs: type=image,"name=${{ env.DOCKERNAMES }}",push-by-digest=true,name-canonical=true,push=true+ outputs: type=image,"name=${{ env.DOCKERNAMES }}",push-by-digest=true,name-canonical=true,push=${{ github.event_name != 'pull_request' }}cache-from: type=registry,ref=ghcr.io/sysadminsmedia/devcache:${{ env.PLATFORM_PAIR }}-${{ env.BRANCH }}cache-to: type=registry,ref=ghcr.io/sysadminsmedia/devcache:${{ env.PLATFORM_PAIR}}-${{ env.BRANCH }},mode=maxbuild-args: |@@ -112,7 +112,6 @@ jobs:provenance: truesbom: trueannotations: ${{ steps.meta.outputs.annotations }}- push: ${{ github.event_name != 'pull_request' }}- name: Export digestrun: |