From abbde088cf189c3a1816a00a332a42344c232cb2 Mon Sep 17 00:00:00 2001 From: Khalid Alansary Date: Sat, 22 Nov 2025 18:03:11 +0000 Subject: [PATCH] Update Docker cache restoration step in CI config Updated Docker cache mount restoration step to use the latest version of the buildkit-cache-dance action and added additional parameters for cache management. --- content/manuals/build/ci/github-actions/cache.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/content/manuals/build/ci/github-actions/cache.md b/content/manuals/build/ci/github-actions/cache.md index 9619a9315f1b..b3488345b0ce 100644 --- a/content/manuals/build/ci/github-actions/cache.md +++ b/content/manuals/build/ci/github-actions/cache.md @@ -219,6 +219,9 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v5 + - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -230,6 +233,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + id: setup-buildx - name: Docker meta id: meta @@ -248,10 +252,13 @@ jobs: path: go-build-cache key: ${{ runner.os }}-go-build-cache-${{ hashFiles('**/go.sum') }} - - name: Inject go-build-cache - uses: reproducible-containers/buildkit-cache-dance@4b2444fec0c0fb9dbf175a96c094720a692ef810 # v2.1.4 + - name: Restore Docker cache mounts + uses: reproducible-containers/buildkit-cache-dance@5b81f4d29dc8397a7d341dba3aeecc7ec54d6361 # v3.3.0 with: - cache-source: go-build-cache + builder: ${{ steps.setup-buildx.outputs.name }} + cache-dir: cache-mount + dockerfile: build/package/Dockerfile + skip-extraction: ${{ steps.cache.outputs.cache-hit }} - name: Build and push uses: docker/build-push-action@v6 @@ -263,6 +270,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: linux/amd64,linux/arm64 + ``` For more information about this workaround, refer to the