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