diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 3d3a061..0702aae 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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 diff --git a/docs/deployment.md b/docs/deployment.md index 996dbfb..1419be4 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -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=随机数据库密码