A continuation of HomeBox the inventory and organization system built for the Home User
Update docker-publish-rootless-arm.yaml
Katosd45c8b2b2d04
diff --git a/.github/workflows/docker-publish-rootless-arm.yaml b/.github/workflows/docker-publish-rootless-arm.yamlindex 4d27991c..c40cd55b 100644--- a/.github/workflows/docker-publish-rootless-arm.yaml+++ b/.github/workflows/docker-publish-rootless-arm.yaml@@ -37,26 +37,22 @@ jobs:permissions:contents: readpackages: write- # This is used to complete the identity challenge- # with sigstore/fulcio when running outside of PRs.attestations: writeid-token: writesteps:+ # Step 1: Checkout repository- name: Checkout repositoryuses: actions/checkout@v4- # Set up BuildKit Docker container builder to be able to build- # multi-platform images and export cache- # https://github.com/docker/setup-buildx-action+ # Step 2: Set up Buildx without specifying driver- name: Set up Docker Buildxuses: docker/[email protected]with:install: true # Ensure Buildx is installed and set up properlyuse: true # Use Buildx instance directly for this job- # Login against a Docker registry except on PR- # https://github.com/docker/login-action+ # Step 3: Login to Docker registry except on PR- name: Log into registry ${{ env.REGISTRY }}if: github.event_name != 'pull_request'uses: docker/[email protected]@@ -65,8 +61,7 @@ jobs:username: ${{ github.actor }}password: ${{ secrets.GITHUB_TOKEN }}- # Extract metadata (tags, labels) for Docker- # https://github.com/docker/metadata-action+ # Step 4: Extract metadata for Docker images- name: Extract Docker metadataid: metadatauses: docker/[email protected]@@ -81,9 +76,8 @@ jobs:type=schedule,pattern=nightlyflavor: |suffix=-rootless-arm,onlatest=true-- # Build and push Docker image with Buildx (don't push on PR)- # https://github.com/docker/build-push-action++ # Step 5: Build and push the Docker image- name: Build and push Docker imageid: build-and-pushuses: docker/[email protected]@@ -92,15 +86,14 @@ jobs:push: ${{ github.event_name != 'pull_request' }}tags: ${{ steps.metadata.outputs.tags }}labels: ${{ steps.metadata.outputs.labels }}- platforms: linux/arm64,linux/arm/v7 # Build for both ARM64 and ARMv7 architectures- cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache # Use registry-based caching for better cross-platform support- cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:cache # Store the cache in the registry for faster builds+ platforms: linux/arm64,linux/arm/v7+ cache-from: type=gha+ cache-to: type=gha,mode=maxbuild-args: |- VERSION=${{ github.ref_name }} # Pass version as a build argument- COMMIT=${{ github.sha }} # Pass commit SHA as a build argument+ VERSION=${{ github.ref_name }}+ COMMIT=${{ github.sha }}- # Attest the built image to prove build provenance- # https://github.com/actions/attest-build-provenance+ # Step 6: Attest built image to prove build provenance- name: Attestuses: actions/attest-build-provenance@v1id: attest@@ -108,4 +101,4 @@ jobs:with:subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}subject-digest: ${{ steps.build-and-push.outputs.digest }}- push-to-registry: true # Push the attestation to the registry+ push-to-registry: true