fix: curl RUNNER_TOKEN with BASE_URL
This commit is contained in:
parent
9d0038df00
commit
e9fc069b2e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user