From e9fc069b2e3c0a5aae00bed5176be35da266d9c6 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 15 May 2024 18:01:09 +0200 Subject: [PATCH] fix: curl RUNNER_TOKEN with BASE_URL --- manifests/bin/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index e5164ec..d3775b4 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -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"