From dcc10f6bf16ec00acdbe7ed03c0f2c07e4899ffc Mon Sep 17 00:00:00 2001 From: "S. Amir Mohammad Najafi" Date: Tue, 7 Nov 2023 17:58:24 +0330 Subject: [PATCH] fix(workflow): hash file --- .github/workflows/publish-container.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-container.yml b/.github/workflows/publish-container.yml index 578a2ff..752d083 100644 --- a/.github/workflows/publish-container.yml +++ b/.github/workflows/publish-container.yml @@ -72,10 +72,11 @@ jobs: - name: 🏗 Cache Docker Layers uses: actions/cache@v3 with: - path: /tmp/.buildx-cache + path: /tmp/.buildx-cache + key: image-${{ matrix.name }}-version-${{ matrix.version.full }}-buildx-${{ hashFiles(format('{0}/Container_folder', matrix.name)) }} restore-keys: | image-${{ matrix.name }}-version-${{ matrix.version.full }}-buildx- - + - name: 🏗 Log into registry ${{env.REGISTRY}} if: ${{ github.event_name != 'pull_request' && steps.file_change.outputs.container_folder == 'true' }} uses: docker/login-action@v3.0.0