Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

Only push on actual project branches, PRs do not get pushed

Matthew Kilgore18adac6620aa
diff --git a/.github/workflows/docker-publish-rootless.yaml b/.github/workflows/docker-publish-rootless.yaml
index ca8d73ba..0590e360 100644
--- a/.github/workflows/docker-publish-rootless.yaml
+++ b/.github/workflows/docker-publish-rootless.yaml
@@ -121,6 +121,7 @@ jobs:
provenance: true
sbom: true
annotations: ${{ steps.meta.outputs.annotations }}
+ push: ${{ github.event_name != 'pull_request' }}
- name: Export digest
run: |
@@ -137,6 +138,7 @@ jobs:
retention-days: 1
merge:
+ if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml
index 3bc18360..6d8c3e34 100644
--- a/.github/workflows/docker-publish.yaml
+++ b/.github/workflows/docker-publish.yaml
@@ -112,6 +112,7 @@ jobs:
provenance: true
sbom: true
annotations: ${{ steps.meta.outputs.annotations }}
+ push: ${{ github.event_name != 'pull_request' }}
- name: Export digest
run: |
@@ -128,6 +129,7 @@ jobs:
retention-days: 1
merge:
+ if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read # Allows access to repository contents (read-only)
@@ -147,7 +149,6 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
- if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}