From 9370a6707a0f7ca60b379dd7a7c49fda016ebaaf Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 22 May 2024 18:25:15 +0200 Subject: [PATCH] fix: gitea admin timeout on init --- manifests/bin/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index fd314cc..79f6704 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -51,7 +51,7 @@ kcreatesec gitea-admin \ --from-literal=password="$GITEA_PASSWORD" kcreatesec gitea \ - --from-literal=secret_key="$(kgseckey gitea secret_key || openssl rand -hex 32)" \ + --from-literal=secret_key="$(kgseckey gitea secret_key || openssl rand -hex 32)" \ --from-literal=internal_token="$(kgseckey gitea internal_token || openssl rand -hex 32)" kcreatecm gitea \ @@ -63,7 +63,7 @@ kapply common/job.yaml \ kubectl rollout restart statefulset app -kubectl rollout status sts app +kubectl wait --for=condition=complete job kcreatesec runner \ --from-literal=token="$(kgseckey runner token || kubectl exec app-0 -- gitea actions generate-runner-token)"