ci: target deployment by machine label
CI / test (push) Successful in 15s

This commit is contained in:
2026-09-21 16:13:24 +08:00
parent 4e6019ec61
commit 25c8851563
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ on:
workflow_dispatch:
jobs:
deploy:
# This unique host label prevents production from landing on another global runner.
runs-on: coffeechat-production
# Unique machine label: production must run on this server, never another global runner.
runs-on: minecraft-and-affine-server
concurrency: coffeechat-production
steps:
- uses: actions/checkout@v4
+1 -1
View File
@@ -2,7 +2,7 @@
## 1. 主机准备
`minecraft-and-affine-server` Gitea Runner 需要可执行 Docker Compose,并注册唯一的 `coffeechat-production:host` 标签;部署工作流只匹配该标签,不会被其他全局 Runner 接走。Runner 服务账号必须能读取 `/opt/coffeechat/.env`,建议将该文件权限限制为该账号可读:
`minecraft-and-affine-server` Gitea Runner 需要可执行 Docker Compose,并注册唯一的同名机器标签 `minecraft-and-affine-server:host`;部署工作流只匹配该标签,不会被其他全局 Runner 接走。其他服务器应使用各自唯一的同名标签。Runner 服务账号必须能读取 `/opt/coffeechat/.env`,建议将该文件权限限制为该账号可读:
```dotenv
POSTGRES_PASSWORD=随机数据库密码