add exec
This commit is contained in:
@@ -2,6 +2,7 @@ variables:
|
||||
CI_PROJECT_DIR: "."
|
||||
CI_REGISTRY_IMAGE: hub.ducoterra.net/ducoterra/django
|
||||
CI_COMMIT_TAG: 3.8.2_5
|
||||
DEPLOY: test
|
||||
|
||||
stages:
|
||||
- build
|
||||
@@ -27,6 +28,5 @@ launch:
|
||||
- chmod +x ./kubectl
|
||||
- envsubst < k8s/deploy.yaml > out.yaml
|
||||
- mv out.yaml k8s/deploy.yaml
|
||||
- envsubst < k8s/job.yaml > out.yaml
|
||||
- mv out.yaml k8s/job.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
|
||||
Reference in New Issue
Block a user