Commit f5ecaa6e authored by Craig Russell's avatar Craig Russell
Browse files

Updating cicd to only build for prod + stage

parent 41c0fa85
variables:
SSL_CERT_DIR: ''
SSL_CERT_DIR: ""
# DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ''
DOCKER_TLS_CERTDIR: ""
stages:
- debug
......@@ -13,27 +13,36 @@ debug:
stage: debug
script:
- export
setup:
stage: setup
image: docker
services:
- name: docker:19.03.0-dind
- name: docker:19.03.0-dind
script:
- docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
- docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
staging:
stage: staging
image: praqma/helmsman:v3.5.1
script:
- helmsman --apply --debug --group staging -f helmsman-token.yaml -f helmsman.yaml -f helmsman-staging.yaml
# except:
# - master
only:
- staging
# production:
# stage: production
production:
stage: production
image: praqma/helmsman:v3.5.1
script:
- helmsman --apply --debug --group production -f helmsman-token.yaml -f helmsman.yaml helmsman-production.yaml
only:
- master
# testing:
# stage: testing
# image: python
# script:
# - helmsman --apply --debug --group production -f helmsman.yaml helmsman-production.yaml
# only:
# - production
# - pip install pytest
# - git clone https://github.com/jupyterhub/jupyterhub
# - pytest
# except:
# - staging
context: minikube
settings:
kubeContext: minikube
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment