fix: curl RUNNER_TOKEN with BASE_URL

This commit is contained in:
ange 2024-05-15 18:01:09 +02:00
parent 9d0038df00
commit e9fc069b2e
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -61,7 +61,7 @@ kapply common/job.yaml \
kubectl rollout restart statefulset app
for i in {0..9}; do
RUNNER_TOKEN="$(curl "http://$GITEA_USERNAME:$GITEA_PASSWORD@app/api/v1/admin/runners/registration-token" | jq .token)"
RUNNER_TOKEN="$(curl -sS "https://$GITEA_USERNAME:$GITEA_PASSWORD@$BASE_URL/api/v1/admin/runners/registration-token" | jq .token)"
if [ "$RUNNER_TOKEN" != null ]; then
kcreatesec runner-secret --from-literal=token="$RUNNER_TOKEN"