Loading capif/templates/cd-deploy-ocf.gitlab-ci.yml +7 −5 Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ deploy_ocf_staging: echo "### download dependencies###" helm dependency build helm/capif echo "### updating capif###" helm upgrade --install -n $NAMESPACE_DEV_TO_STAGING ocf-pre-staging helm/capif/ \ helm upgrade --install -n $NAMESPACE_DEV_TO_STAGING-mr ocf-pre-staging helm/capif/ \ --set grafana.enabled=true \ --set grafana.ingress.enabled=true \ --set grafana.ingress.hosts[0].host=ocf-mon-$CI_ENV_ENDPOINT.$DOMAIN_DEV \ Loading Loading @@ -235,12 +235,14 @@ deploy_ocf_staging: delete_ocf_staging: stage: delete_ocf_staging needs: - prep_ocf_cd_staging <<: *staging_common script: - echo "### deleting environment $NAMESPACE_STAGING###" - helm uninstall -n $NAMESPACE_DEV_TO_STAGING ocf-pre-staging - kubectl delete ns $NAMESPACE_DEV_TO_STAGING --force when: manual - export NAMESPACE_DEV_TO_STAGING=$(cat cd_env_endpoint.txt) - echo "### deleting environment $NAMESPACE_DEV_TO_STAGING###" - helm uninstall -n $NAMESPACE_DEV_TO_STAGING-mr ocf-pre-staging - kubectl delete ns $NAMESPACE_DEV_TO_STAGING-mr environment: name: review/dev_to_staging action: stop Loading Loading
capif/templates/cd-deploy-ocf.gitlab-ci.yml +7 −5 Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ deploy_ocf_staging: echo "### download dependencies###" helm dependency build helm/capif echo "### updating capif###" helm upgrade --install -n $NAMESPACE_DEV_TO_STAGING ocf-pre-staging helm/capif/ \ helm upgrade --install -n $NAMESPACE_DEV_TO_STAGING-mr ocf-pre-staging helm/capif/ \ --set grafana.enabled=true \ --set grafana.ingress.enabled=true \ --set grafana.ingress.hosts[0].host=ocf-mon-$CI_ENV_ENDPOINT.$DOMAIN_DEV \ Loading Loading @@ -235,12 +235,14 @@ deploy_ocf_staging: delete_ocf_staging: stage: delete_ocf_staging needs: - prep_ocf_cd_staging <<: *staging_common script: - echo "### deleting environment $NAMESPACE_STAGING###" - helm uninstall -n $NAMESPACE_DEV_TO_STAGING ocf-pre-staging - kubectl delete ns $NAMESPACE_DEV_TO_STAGING --force when: manual - export NAMESPACE_DEV_TO_STAGING=$(cat cd_env_endpoint.txt) - echo "### deleting environment $NAMESPACE_DEV_TO_STAGING###" - helm uninstall -n $NAMESPACE_DEV_TO_STAGING-mr ocf-pre-staging - kubectl delete ns $NAMESPACE_DEV_TO_STAGING-mr environment: name: review/dev_to_staging action: stop Loading