From da360e2f68ac1cedf16d2a42e9d802e30143e4a2 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 3 Nov 2026 12:08:14 +0800 Subject: [PATCH] =?UTF-8?q?docs(=E9=83=A8=E7=BD=B2):=20=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E6=9C=BA=E4=B8=8A=E7=9A=84=20runner=20=E6=94=B9=E6=88=90?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E5=9C=A8=20xuyue=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E5=92=8C=20IOT=5FSIM=20=E5=85=B1=E7=94=A8?= =?UTF-8?q?=EF=BC=88=E5=A4=9A=E4=B8=80=E4=B8=AA=20iot-deploy=20=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- docs/deploy.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/deploy.md b/docs/deploy.md index 362a004..a993daa 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -96,8 +96,8 @@ Run workflow),开发机不在、又急着上线时用。它不再 push 就 |---|---| | 程序 | `pacman -S gitea-runner`(系统级的 `gitea-runner.service` 不开,它用单独的账号跑) | | 服务 | `~/.config/systemd/user/gitea-runner.service`,`systemctl --user status gitea-runner` | -| 配置 | `~/.local/share/gitea-runner/config.yaml`(标签 `oj2-deploy:host`,capacity 1) | -| 注册 | 同目录的 `.runner`;只给 `xuyue/OJ2` 这一个仓库用 | +| 配置 | `~/.local/share/gitea-runner/config.yaml`(标签 `oj2-deploy:host`、`iot-deploy:host`,capacity 1) | +| 注册 | 同目录的 `.runner`;注册在 `xuyue` 用户下,和 IOT_SIM(物联网仿真平台)共用。capacity 1,两边的部署排队,不会同时挤服务器 | | 日志 | `journalctl --user -u gitea-runner -f`;每次部署的日志在 Gitea 的 Actions 页面 | **部署不用开发机自己的 bun。** pacman 装的 bun 是 Arch 自己编的,动态链接系统 ICU,单二进制 @@ -109,11 +109,12 @@ Run workflow),开发机不在、又急着上线时用。它不再 push 就 换一台机器跑 runner:装 `gitea-runner`,在服务器上生成注册令牌,再照上面那份配置注册: ```bash -ssh debian 'docker exec -u git gitea gitea --config /data/gitea/conf/app.ini actions generate-runner-token --scope xuyue/OJ2' +ssh debian 'docker exec -u git gitea gitea --config /data/gitea/conf/app.ini actions generate-runner-token --scope xuyue' gitea-runner register --no-interactive --config config.yaml --instance https://git.xuyue.cc --token <令牌> --name <名字> ``` -那台机器还得能 `ssh debian`、能 `git fetch git@git.xuyue.cc:xuyue/OJ2.git`(都不能要密码)。 +那台机器还得能 `ssh debian`、能 `git fetch git@git.xuyue.cc:xuyue/OJ2.git`(都不能要密码); +IOT_SIM 的部署还要 dotnet 10 SDK 和 bubblewrap(见那边的 `deploy/README.md`)。 旧的 runner 在 Gitea 仓库设置 → Actions → Runners 里删掉。 ### 手工部署(机房、或 CI 不可用时)