ci: deploy.yml 按分支分流(dev→srv1563674 / main·master→sf5-gpu-01)
Deploy / Build and deploy (push) Successful in 8s
Deploy / Build and deploy (push) Successful in 8s
prod 也接入自动部署:push main/master 在 prod GPU 机重建 content-harvester 容器。 对应在 sf5-gpu-01 上新增了实例级 gitea runner(label sf5-gpu-01)。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
name: Deploy
|
||||
|
||||
# push 到 dev 分支 → 在 dev 开发机上重新 build 镜像、重建 content-harvester 容器。
|
||||
# (只管 dev;prod 仍手动部署 —— 见 DEPLOY.md。)
|
||||
# push dev → dev 开发机(srv1563674)重建 content-harvester 容器
|
||||
# push main/master → prod GPU 机(sf5-gpu-01)重建 content-harvester 容器
|
||||
# (与主站 AIautomation 的 deploy.yml 一致的分支→机器分流)
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- main
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Build and deploy (dev)
|
||||
# dev 开发机的 gitea runner 标签(与主站 AIautomation 的 deploy.yml 一致)
|
||||
runs-on: srv1563674
|
||||
name: Build and deploy
|
||||
runs-on: ${{ github.ref == 'refs/heads/dev' && 'srv1563674' || 'sf5-gpu-01' }}
|
||||
|
||||
env:
|
||||
IMAGE: content-harvester
|
||||
|
||||
Reference in New Issue
Block a user