let's test this sucker

This commit is contained in:
ducoterra
2020-04-22 15:13:04 -04:00
parent 73bba50262
commit 22843802b7
13 changed files with 240 additions and 24 deletions

View File

@@ -1,33 +1,24 @@
variables:
CI_PROJECT_DIR: "."
CI_REGISTRY_IMAGE: hub.ducoterra.net/ducoterra/django
CI_COMMIT_TAG: 3.8.2_2
CI_COMMIT_TAG: 3.8.2_3
stages:
# - build
# - test
- build
- deploy
# push:
# stage: build
# image:
# name: gcr.io/kaniko-project/executor:debug
# entrypoint: [""]
# script:
# - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
push:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
# pip:
# stage: test
# image:
# name: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
# entrypoint: [""]
# script:
# - echo $(pip freeze)
pods:
launch:
stage: deploy
image:
name: ubuntu:18.04
name: debian:latest
entrypoint: [""]
script:
- echo $CI_REGISTRY_IMAGE
@@ -37,4 +28,12 @@ pods:
- envsubst < k8s/deploy.yaml > out.yaml
- cat out.yaml
- mv out.yaml k8s/deploy.yaml
- ./kubectl apply -f k8s/
- ./kubectl apply -f k8s/
migrate:
stage: post-deploy
image:
name: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
entrypoint: [""]
script:
- python manage.py migrate