From 812ac6b6931ca1de42a738ef2d4ff51577d9b74e Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Thu, 8 Oct 2026 16:27:55 +0200 Subject: [PATCH] ci: clear the build cache before retrying a bake Co-Authored-By: Claude Opus 5.5 --- .github/actions/bake/action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/actions/bake/action.yml b/.github/actions/bake/action.yml index eb65cfd01a..0ffc482d01 100644 --- a/.github/actions/bake/action.yml +++ b/.github/actions/bake/action.yml @@ -34,5 +34,8 @@ runs: retry_wait_seconds: 60 polling_interval_seconds: 5 command: docker buildx bake --set settings.secrets=type=env,id=GITHUB_TOKEN ${{ inputs.args }} + # an aborted build can leave a broken snapshot in the builder cache, which + # fails every retry with "failed to commit ... snapshot ... not found" + on_retry_command: docker buildx prune --force env: GITHUB_TOKEN: ${{ inputs.token }}