更新 .gitea/workflows/push.yml
This commit is contained in:
@@ -6,15 +6,16 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
COMPOSE_PROJECT_NAME: nasrobot
|
COMPOSE_PROJECT_NAME: nasrobot
|
||||||
IMAGE_NAME: nasrobot-app # 显式定义镜像名称
|
IMAGE_NAME: nasrobot-app
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Docker Image
|
name: Build Docker Image
|
||||||
runs-on: docker-cli
|
runs-on: docker-cli
|
||||||
steps:
|
steps:
|
||||||
|
# ✅ 使用 Gitea 兼容的代码检出方式
|
||||||
- name: Checkout code
|
- 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
|
- name: Cleanup old containers
|
||||||
run: |
|
run: |
|
||||||
@@ -31,7 +32,7 @@ jobs:
|
|||||||
environment: production
|
environment: production
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- 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
|
- name: Start containers
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user