From 7a2f391d7575fcd088686754ce40f5defb547913 Mon Sep 17 00:00:00 2001 From: Vlad Pronsky Date: Mon, 29 Jul 2024 00:02:28 +0300 Subject: [PATCH] ci: improve buildx cache --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cba2b34..2dcaaa4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,7 @@ jobs: echo ${GHCR_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin docker buildx build --push \ --cache-from=type=gha --cache-to=type=gha,mode=max \ + --cache-from=ghcr.io/${USERNAME}/ghstats:main \ --platform linux/amd64,linux/arm64 \ -t ghcr.io/${USERNAME}/ghstats:main . @@ -36,6 +37,7 @@ jobs: echo ${GHCR_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin docker buildx build --push \ --cache-from=type=gha --cache-to=type=gha,mode=max \ + --cache-from=ghcr.io/${USERNAME}/ghstats:main \ --platform linux/amd64,linux/arm64 \ -t ghcr.io/${USERNAME}/ghstats:${ref} -t ghcr.io/${USERNAME}/ghstats:latest .