更新 .gitea/workflows/demo.yaml
自动流水线示例 / build (push) Successful in 1m59s Details
自动流水线示例 / deploy (push) Successful in 17s Details

发布生产
This commit is contained in:
xiehaijun 2025-07-27 09:48:48 +00:00
parent b035e80a29
commit 1fa41b0bbe
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ on:
# - cron: '30 5 * * 2,4'
jobs:
"构建应用":
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
@ -111,8 +111,8 @@ jobs:
echo 'docker build -t <dockerhub repository name>.'
echo 'docker push <dockerhub repository name>:latest'
docker info
发布应用:
needs: "构建应用"
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: 执行远程 SSH 命令