Skip to content

Commit 7329d85

Browse files
committed
improve cache, restore key and run once a week
1 parent 7e6b83a commit 7329d85

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker-image-dev.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Docker Image CI for dev
22

33
on:
44
schedule:
5-
- cron: '35 2 * * *'
5+
- cron: '35 2 * * 0' # Runs every Sunday at 2:35 AM
66
push:
77
branches: [ dev ]
88

@@ -42,9 +42,9 @@ jobs:
4242
uses: actions/cache@v4
4343
with:
4444
path: /tmp/.buildx-cache
45-
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.platform }}
45+
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.platform }}-${{ github.run_id }}
4646
restore-keys: |
47-
${{ runner.os }}-buildx-${{ matrix.platform }}
47+
${{ runner.os }}-buildx-${{ matrix.platform }}-
4848
4949
- name: Login to Docker Hub
5050
if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)