Compare commits

...

1 Commits
1.0.3 ... 1.0.4

Author SHA1 Message Date
ducoterra
5f9f4762a9 fix kubectl command 2020-10-12 16:37:17 -04:00

View File

@@ -51,5 +51,5 @@ deploy:
- chmod +x /usr/bin/kubectl - chmod +x /usr/bin/kubectl
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash - 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 - helm upgrade --install $DEPLOY ./helm --set image=$CI_REGISTRY_IMAGE --set tag=$CI_COMMIT_TAG
- POD=$(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') - POD=$(kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}')
- ./kubectl exec $POD -- python manage.py migrate - kubectl exec $POD -- python manage.py migrate