增加构建缓存
Some checks failed
构建并运行 Docker / build (push) Failing after 23s

This commit is contained in:
2025-07-29 14:22:54 +08:00
parent 745360f93f
commit cfdc5e5d9a
4 changed files with 36 additions and 3 deletions

View File

@ -12,6 +12,9 @@ jobs:
- name: 释放内存
run: docker system prune -a -f
- name: 设置 Docker Buildx
run: docker buildx create --use
- name: 拉取自定义 checkout action
run: git clone http://114.67.155.184:3000//niyyzf/checkout.git ./.actions/checkout
@ -23,7 +26,7 @@ jobs:
max-attempts: 5
- name: 构建 Docker 镜像
run: docker build -t watch-stock-list:latest .
run: docker build --cache-from type=gha --cache-to type=gha,mode=max -t watch-stock-list:latest .
- name: 启动/重启服务Docker Compose
run: |