diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index 2f0b941..4083bdf 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -61,6 +61,7 @@ kcreatesec gitea-admin \ --from-literal=password="$GITEA_PASSWORD" kubectl run --image "$IMAGEAPP" secrets sleep 60 & &> /dev/null +kubectl wait --timeout=5m --for=condition=ready pod secrets kcreatesec gitea \ --from-literal=secret_key="$(kgseckey gitea secret_key || kubectl exec secrets -- gitea generate secret SECRET_KEY)" \ --from-literal=internal_token="$(kgseckey gitea internal_token || kubectl exec secrets -- gitea generate secret INTERNAL_TOKEN)" \