fix(deploy): 显式启动发布worker并声明受控运行身份
build / build (push) Successful in 1m21s

This commit is contained in:
姚章浩
2026-10-30 20:48:00 +08:00
parent 468ae64918
commit 657fd251fb
3 changed files with 10 additions and 1 deletions
+2
View File
@@ -54,6 +54,8 @@ class DeploymentTest(unittest.TestCase):
result = self.run_script('run-release-executor.sh')
self.assertEqual(result.returncode, 0, result.stderr)
call = next(c for c in self.calls() if c[1:2] == ['run'])
self.assertEqual(call[-1], '/app/worker')
self.assertEqual(call[call.index('--user') + 1], '0:0')
self.assertEqual(call[call.index('--network') + 1], 'weknora-test-v071-network')
self.assertIn(str(self.root) + ':/run/kgtest-pg:ro', call)
self.assertIn(str(secret) + ':/run/secrets/governance_pgpass:ro', call)