From ac4a28a9eddfab52ef4073262f387f38fe187d01 Mon Sep 17 00:00:00 2001 From: Carl Andersson Date: Wed, 29 Jun 2022 17:26:23 +0200 Subject: [PATCH] Add function to move cache --- .github/workflows/release.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dd7ccaa..672f2d1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -65,7 +65,7 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm/v7,linux/arm64 cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache-new tags: ghcr.io/xenitab/${{ env.NAME }}:${{ steps.get_tag.outputs.tag }} build-args: | VERSION=${{ steps.prep.outputs.VERSION }} @@ -78,6 +78,10 @@ jobs: org.opencontainers.image.revision=${{ github.sha }} org.opencontainers.image.version=${{ steps.prep.outputs.VERSION }} org.opencontainers.image.created=${{ steps.prep.outputs.BUILD_DATE }} + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache - name: Check images run: | docker buildx imagetools inspect ghcr.io/xenitab/${{ env.NAME }}:${{ steps.get_tag.outputs.tag }}