From 7d8c727a3c329fee6bcc99f63f5a62b8c53eaea2 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Sun, 17 Dec 2023 22:56:59 +0100 Subject: [PATCH] ci/cd: added timestamp to cache name to ensure that the latest cache is always used --- .gitea/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a889962..288652e 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -17,12 +17,16 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Get current time + id: timestamp + run: echo "::set-output name=now::$(date +"%s")" + - name: Cache Docker layers uses: https://github.com/actions/cache/restore@v3 with: path: | /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-admin_worker-${{ gitea.sha }} + key: ${{ runner.os }}-buildx-admin_worker-${{ ${{ steps.timestamp.outputs.now }} }}-${{ gitea.sha }} restore-keys: | ${{ runner.os }}-buildx-admin_worker-