Match website workflow to the dedicated runner label

This commit is contained in:
KenanZhu committed 2026-11-04 10:24:35 +08:00
1 parent ea3c288df7
commit e7bd715243
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ on:
jobs:
deploy:
runs-on: autolibrary-production
runs-on: linux-amd64-docker-small
steps:
- name: Check out the pushed commit
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+1 -1
View File
@@ -52,7 +52,7 @@ autolibrary-deploy ALL=(root) NOPASSWD: /usr/bin/systemctl restart autolibrary-w
sudo -u autolibrary-deploy -H sh -c 'cd "$HOME" && gitea-runner register'
```
输入实例地址和仓库级令牌,标签只填写 `autolibrary-production:host`。以同一账号和工作目录运行 `gitea-runner daemon`。可用下面的 systemd unit 持久运行,将 `ExecStart` 与 `PATH` 调整到实际安装位置。
输入实例地址和仓库级令牌,名称填写 `hk-vps-runner-02`,标签只填写 `linux-amd64-docker-small:host`。冒号前是工作流使用的调度标签,`:host` 使发布脚本能操作宿主机上的网站服务。以同一账号和工作目录运行 `gitea-runner daemon`。可用下面的 systemd unit 持久运行,将 `ExecStart` 与 `PATH` 调整到实际安装位置。
```ini
[Unit]