Update .gitlab-ci.yml

This commit is contained in:
Reese
2020-04-23 03:26:29 +00:00
parent 0c624552c4
commit 83d7f09eef

View File

@@ -28,5 +28,6 @@ launch:
- chmod +x ./kubectl
- envsubst < k8s/deploy.yaml > out.yaml
- mv out.yaml k8s/deploy.yaml
- ./kubectl apply -f k8s
- ./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