fix(infra): use GET not POST for Gitea runner registration token API
The endpoint GET /api/v1/admin/runners/registration-token returns the token — POST returns 405. Bootstrapper was silently failing, leaving the secret empty and the act-runner unable to register. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
07c2dc3ecb
commit
e39840cca2
@ -125,7 +125,7 @@ resource "terraform_data" "gitea_runner_registration" {
|
||||
PASSWORD=$(kubectl get secret gitea-admin -n gitea \
|
||||
-o jsonpath='{.data.password}' | base64 -d)
|
||||
|
||||
TOKEN=$(curl -sf -X POST \
|
||||
TOKEN=$(curl -sf \
|
||||
-u "admin:$PASSWORD" \
|
||||
"http://git.homelab.local/api/v1/admin/runners/registration-token" \
|
||||
| grep -o '"token":"[^"]*"' | cut -d'"' -f4)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user