crazy stuff here

This commit is contained in:
ducoterra
2020-04-22 15:47:12 -04:00
parent 9cc9e65fac
commit 030f1fb73d
5 changed files with 34 additions and 13 deletions

View File

@@ -6,7 +6,6 @@ variables:
stages:
- build
- deploy
- post-deploy
push:
stage: build
@@ -27,14 +26,7 @@ launch:
- curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- envsubst < k8s/deploy.yaml > out.yaml
- cat out.yaml
- mv out.yaml k8s/deploy.yaml
- ./kubectl apply -f k8s/
migrate:
stage: post-deploy
image:
name: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
entrypoint: [""]
script:
- python manage.py migrate
- envsubst < k8s/job.yaml > out.yaml
- mv out.yaml k8s/job.yaml
- ./kubectl apply -f k8s/