From 0e55adae62cd6a1f7a7150bec18fb0ceccc9de14 Mon Sep 17 00:00:00 2001 From: Stanislav Povolotsky Date: Fri, 15 Nov 2024 23:41:55 +0100 Subject: [PATCH] Disable second cache --- .github/workflows/docker-image.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 05b7e43..a95472a 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -164,12 +164,12 @@ jobs: echo "CONTINUE_BUILD=false" >> $GITHUB_ENV fi - - name: "Cache download (full)" - if: env.CONTINUE_BUILD != 'false' - uses: actions/cache@v3 - with: - path: ${{ env.BUILD_CACHE_FOLDER_FULL }} - key: ${{ env.CACHE_ID_FULL }} + #- name: "Cache download (full)" + # if: env.CONTINUE_BUILD != 'false' + # uses: actions/cache@v3 + # with: + # path: ${{ env.BUILD_CACHE_FOLDER_FULL }} + # key: ${{ env.CACHE_ID_FULL }} # Build and push the Docker image for both amd64 and arm64 platforms - name: Build and Push Docker image @@ -179,8 +179,9 @@ jobs: context: . push: true platforms: linux/amd64,linux/arm64 - cache-from: type=local,src=${{ env.BUILD_CACHE_FOLDER_FULL }}/.buildx-cache - cache-to: type=local,dest=${{ env.BUILD_CACHE_FOLDER_FULL }}/.buildx-cache,mode=max + cache-from: type=local,src=${{ env.BUILD_CACHE_FOLDER_VERSIONS }}/.buildx-cache + #cache-from: type=local,src=${{ env.BUILD_CACHE_FOLDER_FULL }}/.buildx-cache + #cache-to: type=local,dest=${{ env.BUILD_CACHE_FOLDER_FULL }}/.buildx-cache,mode=max build-args: | DOCKER_IMAGE_BUILD_VERSION=${{ env.NEW_VERSION }} tags: ${{ vars.DOCKER_IMAGE }}:${{ env.NEW_VERSION }}-temp