Commit fb223812 authored by Thong Kuah's avatar Thong Kuah
Browse files

Fix auto-deploy deploy not working

Despite tiller being available now, we only initialized the HELM_HOST
var in `auto-deploy initialize_tiller` and subsequent calls to the
script did not have access to this cause helm to not be able to connect
correctly to the tiller here.

Move the HELM_HOST var to be available everytime this script is called
parent 2803dfbb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
auto_database_url=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${CI_ENVIRONMENT_SLUG}-postgres:5432/${POSTGRES_DB}
export DATABASE_URL=${DATABASE_URL-$auto_database_url}
export TILLER_NAMESPACE=$KUBE_NAMESPACE
export HELM_HOST="localhost:44134"

function check_kube_domain() {
  if [[ -z "$KUBE_INGRESS_BASE_DOMAIN" ]]; then
@@ -50,7 +51,6 @@ function ensure_namespace() {
function initialize_tiller() {
  echo "Checking Tiller..."

  export HELM_HOST="localhost:44134"
  nohup tiller -listen ${HELM_HOST} -alsologtostderr > /dev/null 2>&1 &
  echo "Tiller is listening on ${HELM_HOST}"