更新 .gitea/workflows/push.yml
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user