README: document the runner IP allowlist on the deploy hooks
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (push) Successful in 19s
CI / Lint (eslint) (push) Successful in 22s
CI / Security (npm audit) (push) Successful in 15s
CI / Integration (api) (push) Successful in 1m30s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m39s
CI / Lint (eslint) (pull_request) Successful in 21s
CI / Test (jest) (pull_request) Successful in 14s
CI / Security (npm audit) (pull_request) Successful in 7s
CI / UI (playwright) (push) Successful in 1m47s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
CI / Integration (api) (pull_request) Successful in 1m59s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m7s
CI / UI screenshots (before/after) (pull_request) Successful in 9s
CI / UI (playwright) (pull_request) Successful in 1m44s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (push) Successful in 19s
CI / Lint (eslint) (push) Successful in 22s
CI / Security (npm audit) (push) Successful in 15s
CI / Integration (api) (push) Successful in 1m30s
CI / Scan (secrets, workflows, shell) (push) Successful in 1m39s
CI / Lint (eslint) (pull_request) Successful in 21s
CI / Test (jest) (pull_request) Successful in 14s
CI / Security (npm audit) (pull_request) Successful in 7s
CI / UI (playwright) (push) Successful in 1m47s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
CI / Integration (api) (pull_request) Successful in 1m59s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m7s
CI / UI screenshots (before/after) (pull_request) Successful in 9s
CI / UI (playwright) (pull_request) Successful in 1m44s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c35eb82631
commit
783d6db160
1 file changed
+9
-2
@@ -713,12 +713,19 @@ and add a hook to `/etc/webhook/hooks.json`, with the same secret as the repo's
|
||||
{ "source": "payload", "name": "ts" }
|
||||
],
|
||||
"trigger-rule": {
|
||||
"match": { "type": "payload-hmac-sha256", "secret": "<WORKER_WEBHOOK_SECRET>",
|
||||
"parameter": { "source": "header", "name": "X-Gitea-Signature" } }
|
||||
"and": [
|
||||
{ "match": { "type": "payload-hmac-sha256", "secret": "<WORKER_WEBHOOK_SECRET>",
|
||||
"parameter": { "source": "header", "name": "X-Gitea-Signature" } } },
|
||||
{ "match": { "type": "ip-whitelist", "ip-range": "10.10.10.70/32" } }
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Both Pulse hooks (`pulse-deploy` on CT 122 and `pulse-worker-deploy` on CT 153) only accept requests
|
||||
from the CI runner, 10.10.10.70, as well as requiring the signature. If the runner's address changes,
|
||||
deploys fail in CI (the verify step times out) until the `ip-range` is updated on both hosts.
|
||||
|
||||
To add a worker host, install Node 20 and the worker as above, give it a `.env` with `WORKER_NAME`,
|
||||
`PULSE_SERVER`, `PULSE_WS` and `WORKER_API_KEY`, and add its hook (one hook URL per host in the
|
||||
`Deploy worker` job).
|
||||
|
||||
Reference in new issue
Block a user