ci: 添加 Gitea Actions 示例工作流

- 新增 ci.yaml 文件,定义 Gitea Actions 示例
This commit is contained in:
hu xiaotong
2025-06-26 16:10:10 +08:00
parent 6e6bdde96e
commit a223a2ca41

View File

@@ -171,12 +171,15 @@ jobs:
- name: 重启 Docker 容器
run: |
echo "♻️ 重启 epic-go 容器..."
# 自动安装 docker CLI
# 自动安装 docker CLI优先用国内源
if command -v docker &> /dev/null; then
echo "docker 已安装: $(docker --version)"
elif command -v apt-get &> /dev/null; then
apt-get update && apt-get install -y docker.io
elif command -v apk &> /dev/null; then
echo "http://mirrors.aliyun.com/alpine/v3.20/main" > /etc/apk/repositories
echo "http://mirrors.aliyun.com/alpine/v3.20/community" >> /etc/apk/repositories
apk update
apk add --no-cache docker-cli
elif command -v yum &> /dev/null; then
yum install -y docker