mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-01 19:00:18 +08:00
Try enable cache for docker
This commit is contained in:
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
- 'doc/**'
|
||||
- docker-compose.yml
|
||||
- README.md
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: "docker"
|
||||
@@ -23,6 +24,9 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
- name: Get cache key
|
||||
id: cache_key
|
||||
run: python3 scripts/get_cache_key.py --docker
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -37,6 +41,8 @@ jobs:
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
cache-from: type=gha,scope=docker-${{ steps.cache_key.outputs.cache_key }}
|
||||
cache-to: type=gha,mode=max,scope=docker-${{ steps.cache_key.outputs.cache_key }}
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
Reference in New Issue
Block a user