From 811c51d48c680f43deb3234c47dbcd3189164fcc Mon Sep 17 00:00:00 2001 From: Irfan Habib Date: Fri, 10 Aug 2018 13:13:27 +0100 Subject: [PATCH] Pass helm repo branch as an env var to chart --- deploy/ci/console-dev-releases.yml | 1 + deploy/ci/console-nightly-releases.yml | 1 + deploy/ci/tasks/dev-releases/create-chart-helper.sh | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deploy/ci/console-dev-releases.yml b/deploy/ci/console-dev-releases.yml index 9797895a22..ef545e3a9e 100644 --- a/deploy/ci/console-dev-releases.yml +++ b/deploy/ci/console-dev-releases.yml @@ -147,6 +147,7 @@ jobs: DOCKER_ORG: ((artifact-docker-organization)) DOCKER_REGISTRY: ((artifact-docker-registry)) HELM_REPO_PATH: ((helm-repo-path)) + HELM_REPO_BRANCH: ((helm-repo-branch)) - put: helm-chart-tarball params: file: helm-chart/*.tgz diff --git a/deploy/ci/console-nightly-releases.yml b/deploy/ci/console-nightly-releases.yml index d78bac84b0..2b601bc296 100644 --- a/deploy/ci/console-nightly-releases.yml +++ b/deploy/ci/console-nightly-releases.yml @@ -147,6 +147,7 @@ jobs: GITHUB_ORG: ((github-organization)) GITHUB_REPO: ((github-repository)) GIT_PRIVATE_KEY: ((github-private-key)) + HELM_REPO_BRANCH: ((helm-repo-branch)) DOCKER_ORG: ((artifact-docker-organization)) DOCKER_REGISTRY: ((artifact-docker-registry)) - put: helm-chart-tarball diff --git a/deploy/ci/tasks/dev-releases/create-chart-helper.sh b/deploy/ci/tasks/dev-releases/create-chart-helper.sh index b93dbe0db7..990174fcde 100644 --- a/deploy/ci/tasks/dev-releases/create-chart-helper.sh +++ b/deploy/ci/tasks/dev-releases/create-chart-helper.sh @@ -26,7 +26,7 @@ setupAndPushChange() { git add index.yaml git commit -m "Dev releases Helm repository updated for tag: ${IMAGE_TAG}" git config --global push.default simple - git push origin HEAD:master + git push origin HEAD:${HELM_REPO_BRANCH} }