summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStuart Moore <stuart.moore@cambridgeconsultants.com>2019-03-22 15:01:10 +0000
committerStuart Moore <stuart.moore@cambridgeconsultants.com>2019-04-08 14:35:20 +0100
commit1347aa382adefc602d430c623a49301006d6e5ba (patch)
treeb85436ac10cee9ea8f78bb5d50fa966dee2fe1ef /lib
parent6844ba2dcc14c722c149f8b257c7fe73ba4854f4 (diff)
downloadgitlab-ce-1347aa382adefc602d430c623a49301006d6e5ba.tar.gz
Adding ability to specify helm chart repo using environment variables
Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/49520 (Covers helm charts; does not cover docker repos)
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml b/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml
index 1e9591e113b..d76c590d8f7 100644
--- a/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml
+++ b/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml
@@ -487,7 +487,7 @@ rollout 100%:
fi
helm init --client-only
- helm repo add gitlab ${AUTO_DEVOPS_CHART_REPOSITORY:-https://charts.gitlab.io}
+ helm repo add ${AUTO_DEVOPS_CHART_REPOSITORY_NAME:-gitlab} ${AUTO_DEVOPS_CHART_REPOSITORY:-https://charts.gitlab.io} ${AUTO_DEVOPS_CHART_REPOSITORY_USERNAME:+"--username" "$AUTO_DEVOPS_CHART_REPOSITORY_USERNAME"} ${AUTO_DEVOPS_CHART_REPOSITORY_PASSWORD:+"--password" "$AUTO_DEVOPS_CHART_REPOSITORY_PASSWORD"}
if [[ ! -d "$auto_chart" ]]; then
helm fetch ${auto_chart} --untar
fi