This commit is contained in:
@@ -34,6 +34,26 @@ AutoDL GPU Runner 的 `TRAINING_RUNNER_REGISTRATION_TOKEN`。
|
||||
|
||||
Runner online 后,第一次 push 只执行 `Controller CI`,不会创建实例或产生 AutoDL 费用。
|
||||
|
||||
## 阿里云长期部署
|
||||
|
||||
每次 push 到 `main` 后,`Controller CI` 会先运行测试,再把通过验证的控制器安装到:
|
||||
|
||||
```text
|
||||
/opt/ces-controller/releases/<git-commit>/
|
||||
```
|
||||
|
||||
`/opt/ces-controller/current` 原子指向当前版本,并安装 Terminal 入口
|
||||
`/usr/local/bin/ces-controller`。管理 workflow 只执行这个长期部署的版本,并拒绝执行与当前
|
||||
workflow commit 不一致的旧版本。部署目录不保存 AutoDL Token 或 Runner Registration Token;
|
||||
Secret 仍只在单次 Actions 任务中注入。
|
||||
|
||||
通过 SSH 可以检查版本或查看帮助:
|
||||
|
||||
```bash
|
||||
cat /opt/ces-controller/current/VERSION
|
||||
ces-controller --help
|
||||
```
|
||||
|
||||
## 管理 workflow
|
||||
|
||||
从 Actions 手动运行 `Manage AutoDL GPU runner`:
|
||||
|
||||
Reference in New Issue
Block a user