crazy stuff here
This commit is contained in:
@@ -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/
|
||||
Reference in New Issue
Block a user