A continuation of HomeBox the inventory and organization system built for the Home User
Migrate context to variable.
Katos40ba888e05b8
diff --git a/.github/workflows/docker-publish-rootless.yaml b/.github/workflows/docker-publish-rootless.yamlindex 9ff2630d..bd6603a8 100644--- a/.github/workflows/docker-publish-rootless.yaml+++ b/.github/workflows/docker-publish-rootless.yaml@@ -31,10 +31,10 @@ jobs:build:runs-on: ubuntu-latestpermissions:- contents: read # Allows access to repository contents (read-only)- packages: write # Allows pushing to GHCR- id-token: write # Allows identity token write access for authentication- attestations: write # Needed for signing and attestation (if required)+ contents: read+ packages: write+ id-token: write+ attestations: writestrategy:fail-fast: false@@ -54,7 +54,6 @@ jobs:echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENVbranch=${{ github.event.pull_request.number || github.ref_name }}echo "BRANCH=${branch//\//-}" >> $GITHUB_ENV-- name: Docker metaid: meta@@ -75,7 +74,7 @@ jobs:with:registry: ghcr.iousername: ${{ github.actor }}- password: ${{ secrets.GITHUB_TOKEN }} # The GitHub token with the necessary permissions+ password: ${{ secrets.GITHUB_TOKEN }}- name: Set up QEMUuses: docker/setup-qemu-action@v3@@ -92,16 +91,16 @@ jobs:id: builduses: docker/build-push-action@v6with:- platforms: ${{ matrix.platform }}- context: .+ context: ${{ github.workspace }} # Explicitly specify the build contextfile: Dockerfile.rootless # Explicitly specify the Dockerfile+ platforms: ${{ matrix.platform }}labels: ${{ steps.meta.outputs.labels }}outputs: type=image,"name=${{ env.DOCKERHUB_REPO }},${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=truecache-from: type=registry,ref=ghcr.io/sysadminsmedia/devcache:${{ env.PLATFORM_PAIR }}-${{ env.BRANCH }}-rootless- cache-to: type=registry,ref=ghcr.io/sysadminsmedia/devcache:${{ env.PLATFORM_PAIR}}-${{ env.BRANCH }}-rootless,mode=max+ cache-to: type=registry,ref=ghcr.io/sysadminsmedia/devcache:${{ env.PLATFORM_PAIR }}-${{ env.BRANCH }}-rootless,mode=maxbuild-args: |VERSION=${{ github.ref_name }}- COMMIT=${{ github.sha }}+ COMMIT=${{ github.sha }}- name: Export digestrun: |@@ -120,10 +119,10 @@ jobs:merge:runs-on: ubuntu-latestpermissions:- contents: read # Allows access to repository contents (read-only)- packages: write # Allows pushing to GHCR!- id-token: write # Allows identity token write access for authentication- attestations: write # Needed for signing and attestation (if required)+ contents: read+ packages: write+ id-token: write+ attestations: writeneeds:- build