From 57bc3408400a3d20e599d0735c7ee3024b471145 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Mon, 8 Mar 2021 17:56:45 -0500 Subject: [PATCH] ci(docker): don't cache first build stage, and add temp fix for growing cache (#1124) * ci(docker): don't cache first build stage, and add temp fix for growing cache --- .github/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b255ff7..66d2d298 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,7 @@ jobs: run: yarn lint - name: build run: yarn build + build_and_push: name: Build & Publish to Docker Hub needs: test @@ -69,7 +70,15 @@ jobs: ghcr.io/sct/overseerr:develop ghcr.io/sct/overseerr:${{ github.sha }} cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache,mode=max + cache-to: type=local,dest=/tmp/.buildx-cache-new + - # Temporary fix + # https://github.com/docker/build-push-action/issues/252 + # https://github.com/moby/buildkit/issues/1896 + name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + discord: name: Send Discord Notification needs: build_and_push @@ -78,7 +87,6 @@ jobs: steps: - name: Get Build Job Status uses: technote-space/workflow-conclusion-action@v2.1.2 - - name: Combine Job Status id: status run: | @@ -88,7 +96,6 @@ jobs: else echo ::set-output name=status::$WORKFLOW_CONCLUSION fi - - name: Post Status to Discord uses: sarisia/actions-status-discord@v1 with: