Files
watch-stock-list/.gitea/workflows/docker-build.yml
niyyzf f96e141b17
Some checks failed
构建并运行 Docker / build (push) Failing after 12m17s
修复缓存
2025-07-29 14:25:03 +08:00

33 lines
817 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: 构建并运行 Docker
on:
push:
tags:
- 'v*' # 只在以 build-v 开头的 tag如 build-v1.0.0)时触发
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 释放内存
run: docker system prune -a -f
- name: 设置 Docker Buildx
run: |
docker buildx create --use --name builder
docker buildx inspect --bootstrap
- name: 拉取自定义 checkout action
run: git clone http://114.67.155.184:3000//niyyzf/checkout.git ./.actions/checkout
- name: 检出代码
uses: ./.actions/checkout
with:
fetch-depth: 1
persist-credentials: false
max-attempts: 5
- name: 构建并部署
run: |
chmod +x build-docker.sh
./build-docker.sh