Compare commits

...

2 Commits
0.1.0 ... 0.1.2

Author SHA1 Message Date
ducoterra
a2e7a92280 prod deploy 2020-04-25 19:17:52 -04:00
ducoterra
b4ef050e1f test vars 2020-04-25 19:11:27 -04:00

View File

@@ -1,8 +1,6 @@
variables:
CI_PROJECT_DIR: "."
CI_REGISTRY_IMAGE: hub.ducoterra.net/ducoterra/mysite
DEPLOY_TEST: test
DEPLOY_PROD: prod
stages:
- build
@@ -18,6 +16,7 @@ build:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo $DEPLOY
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
test:
@@ -32,6 +31,8 @@ test:
- python manage.py test
deploy_to_test:
variables:
DEPLOY: test
stage: deploy
only:
variables:
@@ -52,6 +53,8 @@ deploy_to_test:
- ./kubectl exec $POD -- python manage.py migrate
deploy_to_prod:
variables:
DEPLOY: prod
stage: deploy
only:
variables: