fix: gitea admin timeout on init

This commit is contained in:
ange 2024-05-22 18:25:15 +02:00
parent d61eb9dffd
commit 9370a6707a
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -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)"