ci: add cache for docker image
Some checks failed
build-docker-images-for-latest-release / build-and-push (push) Has been cancelled

This commit is contained in:
fly6516 2024-12-29 13:04:19 +08:00
parent 7c663d7600
commit 99330cdbbe

View File

@ -10,6 +10,15 @@ jobs:
runs-on: ubuntu-latest
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
- name: Checkout repository
uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2