From 6b15056f972cc53f8a537f6df78e62bedc16b51a Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Sat, 27 Jul 2024 00:44:03 +0200 Subject: [PATCH] Simplified docker cache --- .github/workflows/docker-publish.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a6006b1..6046363 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -79,14 +79,11 @@ jobs: - name: Inject go package cache into docker uses: reproducible-containers/buildkit-cache-dance@v3 with: - cache-source: go-package-cache - cache-target: /root/go/pkg/mod - - - name: Inject go build cache into docker - uses: reproducible-containers/buildkit-cache-dance@v3 - with: - cache-source: go-build-cache - cache-target: /root/.cache/go-build + cache-map: | + { + "go-package-cache": "/root/go/pkg/mod", + "go-build-cache": "/root/.cache/go-build" + } # Login against a Docker registry except on PR # https://github.com/docker/login-action