Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ddad90891 |
@@ -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