From 4871abfa2ef2cbead058ec9fe1b870def456e18e Mon Sep 17 00:00:00 2001 From: Henry Date: Sun, 12 Dec 2021 09:24:49 -0500 Subject: [PATCH] action cache disk space issues --- .github/workflows/deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 03fb31fe1..f23992538 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,7 +23,7 @@ jobs: with: swap-size-mb: 4096 temp-reserve-mb: 4096 - root-reserve-mb: 24576 + root-reserve-mb: 16384 remove-dotnet: 'true' remove-android: 'true' remove-haskell: 'true' @@ -113,6 +113,12 @@ jobs: docker tag $CONTAINER_TEST_REPOSITORY $CONTAINER_DEPLOY_REPOSITORY docker push $CONTAINER_DEPLOY_REPOSITORY + # Needed to prevent cache from growing forever (see https://github.com/docker/build-push-action/issues/252) + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache + # I think this is not needed since the "test" image is not pushed # - name: Clean up the CI testing tag # run: |