reference kubectl

This commit is contained in:
ducoterra
2020-04-22 20:46:05 -04:00
parent 793a27fc76
commit 5f0b84d458

View File

@@ -29,4 +29,4 @@ launch:
- envsubst < k8s/deploy.yaml > out.yaml
- mv out.yaml k8s/deploy.yaml
- ./kubectl rollout status deploy $DEPLOY
- ./kubectl exec -it $(kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') -- python manage.py migrate
- ./kubectl exec -it $(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') -- python manage.py migrate