From 4a513df26efa0b3a3da44bae0f1df363d29e1676 Mon Sep 17 00:00:00 2001 From: Estrella Pan Date: Thu, 2 Jul 2026 12:22:39 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20unbreak=20docker=20release=20build=20?= =?UTF-8?q?=E2=80=94=20bump=20docker=20actions,=20make=20GHA=20cache=20wri?= =?UTF-8?q?tes=20non-fatal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 3.2.8 release build failed three times (twice after a full buildkit cache purge) at 'Build and push' with 'error writing layer blob: failed to reserve cache' — the GHA cache export in docker/build-push-action@v4's buildkit client aborting the whole multi-arch build on a cache-service write error. Bump the docker/* actions to current majors and add ignore-error=true to cache-to so a cache write failure can never fail a release build again. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_014w1Z6Nxy6XTRgkFXqPr9Zh --- .github/workflows/build.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3380b355..26587cfa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -192,16 +192,16 @@ jobs: echo "VERSION='${{ needs.version-info.outputs.version }}'" >> module/__version__.py - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Docker metadata main if: ${{ needs.version-info.outputs.release == 1 && needs.version-info.outputs.dev != 1 }} id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: | estrellaxd/auto_bangumi @@ -213,7 +213,7 @@ jobs: - name: Docker metadata dev if: ${{ needs.version-info.outputs.dev == 1 }} id: meta-dev - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: | estrellaxd/auto_bangumi @@ -224,14 +224,14 @@ jobs: - name: Login to DockerHub if: ${{ needs.version-info.outputs.release == 1 }} - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - name: Login to ghcr.io if: ${{ needs.version-info.outputs.release == 1 }} - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -245,7 +245,7 @@ jobs: - name: Build and push if: ${{ needs.version-info.outputs.release == 1 && needs.version-info.outputs.dev != 1 }} - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . builder: ${{ steps.buildx.output.name }} @@ -253,12 +253,12 @@ jobs: push: True tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha, scope=${{ github.workflow }} - cache-to: type=gha, scope=${{ github.workflow }} + cache-from: type=gha,scope=${{ github.workflow }} + cache-to: type=gha,scope=${{ github.workflow }},ignore-error=true - name: Build and push dev if: ${{ needs.version-info.outputs.dev == 1 }} - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . builder: ${{ steps.buildx.output.name }} @@ -266,20 +266,20 @@ jobs: push: ${{ github.event_name == 'push' }} tags: ${{ steps.meta-dev.outputs.tags }} labels: ${{ steps.meta-dev.outputs.labels }} - cache-from: type=gha, scope=${{ github.workflow }} - cache-to: type=gha, scope=${{ github.workflow }} + cache-from: type=gha,scope=${{ github.workflow }} + cache-to: type=gha,scope=${{ github.workflow }},ignore-error=true - name: Build test if: ${{ needs.version-info.outputs.release == 0 }} - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . builder: ${{ steps.buildx.output.name }} platforms: linux/amd64,linux/arm64 push: false tags: estrellaxd/auto_bangumi:test - cache-from: type=gha, scope=${{ github.workflow }} - cache-to: type=gha, scope=${{ github.workflow }} + cache-from: type=gha,scope=${{ github.workflow }} + cache-to: type=gha,scope=${{ github.workflow }},ignore-error=true release: runs-on: ubuntu-latest