need secret mounts

This commit is contained in:
ducoterra
2020-04-25 12:30:04 -04:00
parent 948569a659
commit 57328a7fc8
3 changed files with 6 additions and 1 deletions

View File

@@ -46,4 +46,5 @@ deploy:
- for f in $(find k8s -regex '.*\.ya*ml'); do envsubst < $f > "/deploy/$(basename $f)"; done
- ./kubectl apply -f /deploy
- ./kubectl rollout status deploy $DEPLOY
- ./kubectl exec $(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') -- python manage.py migrate
- POD=$(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}')
- ./kubectl exec $POD -- python manage.py migrate