ci/cd: added timestamp to cache name to ensure that the latest cache is always used
This commit is contained in:
parent
f1782297a3
commit
7d8c727a3c
|
@ -17,12 +17,16 @@ jobs:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Get current time
|
||||||
|
id: timestamp
|
||||||
|
run: echo "::set-output name=now::$(date +"%s")"
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: https://github.com/actions/cache/restore@v3
|
uses: https://github.com/actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
/tmp/.buildx-cache
|
/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: |
|
restore-keys: |
|
||||||
${{ runner.os }}-buildx-admin_worker-
|
${{ runner.os }}-buildx-admin_worker-
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue