1
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 1m4s
Docker Build & Deploy / Deploy to Production (push) Has been skipped

This commit is contained in:
孙诚
2025-02-27 17:57:37 +08:00
parent 7c07a736e4
commit e90cbf0cbf

View File

@@ -10,7 +10,7 @@ env: # 全局环境变量
jobs:
build:
name: Build Docker Image
runs-on: docker # 必须与 runner 的标签匹配 (如 GITEA_RUNNER_LABELS: "docker")
runs-on: ubuntu-22.04 # 必须与 runner 的标签匹配 (如 GITEA_RUNNER_LABELS: "docker")
steps:
- name: Checkout code # ✅ 必须添加代码检出
uses: actions/checkout@v3
@@ -25,7 +25,7 @@ jobs:
deploy:
name: Deploy to Production
runs-on: docker
runs-on: ubuntu-22.04
needs: build # ⚠️ 确保在 build 任务完成后执行
environment: production # 需要先在 Gitea 仓库设置中创建环境
steps: