更新 .gitea/workflows/push.yml
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 27s
Docker Build & Deploy / Deploy to Production (push) Has been skipped

This commit is contained in:
2025-03-06 15:22:02 +08:00
parent 3a68bbfbff
commit ff8917c0ab

View File

@@ -6,15 +6,16 @@ on:
env:
COMPOSE_PROJECT_NAME: nasrobot
IMAGE_NAME: nasrobot-app # 显式定义镜像名称
IMAGE_NAME: nasrobot-app
jobs:
build:
name: Build Docker Image
runs-on: docker-cli
steps:
# ✅ 使用 Gitea 兼容的代码检出方式
- name: Checkout code
uses: https://gitea.com/gitea/act/src/branch/HEAD/actions/checkout@main
uses: https://gitea.com/actions/checkout@v3
- name: Cleanup old containers
run: |
@@ -31,7 +32,7 @@ jobs:
environment: production
steps:
- name: Checkout code
uses: https://gitea.com/gitea/act/src/branch/HEAD/actions/checkout@main
uses: https://gitea.com/actions/checkout@v3
- name: Start containers
run: |