ci: add cache for docker image
Some checks failed
build-docker-images-for-latest-release / build-and-push (push) Has been cancelled
Some checks failed
build-docker-images-for-latest-release / build-and-push (push) Has been cancelled
This commit is contained in:
parent
7c663d7600
commit
99330cdbbe
@ -10,6 +10,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
# Cache Docker layers
|
||||||
|
- name: Cache Docker image layers
|
||||||
|
uses: http://fly6516.synology.me:4000/Gitea_Action/cache@v3
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildkit-cache
|
||||||
|
key: ${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-docker-
|
||||||
|
|
||||||
# Checkout the repository
|
# Checkout the repository
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
|
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user