From f9017ad3021db8f3bbede20db1a1c21e5961edc4 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Mon, 12 Oct 2020 16:55:24 -0400 Subject: [PATCH] sleep for pod to spin up --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 56dfaa8..fb8a527 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,5 +51,6 @@ deploy: - chmod +x /usr/bin/kubectl - curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash - helm upgrade --install $DEPLOY ./helm --set image=$CI_REGISTRY_IMAGE --set tag=$CI_COMMIT_TAG + - sleep 10 - POD=$(kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') - kubectl exec $POD -- python manage.py migrate \ No newline at end of file