From d15b000bb32ecb42fcd5a002ff9d1abf78bfbfcb Mon Sep 17 00:00:00 2001 From: momothereal Date: Mon, 25 Nov 2019 22:39:59 -0500 Subject: [PATCH] Properly install website --- .gitlab-ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02b123e..d68e8da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,10 +40,8 @@ website:deploy: - echo ${K8S_CLUSTER_CONFIG} | base64 -d > ${KUBECONFIG} # Deploy using helm chart - - cd ${WEBSITE_SRC}/chart - - mkdir -p manifests/ - - helm template ./website/ --output-dir manifests/ --name website --set image.name=${WEBSITE_IMAGE} --set image.tag=${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} -f ./website/values.yaml - - kubectl apply --namespace ${DEPLOY_NAMESPACE} -R -f manifests/ + - cd ${WEBSITE_SRC} + - helm upgrade --install --force --set image.name=${WEBSITE_IMAGE},image.tag=${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA} website ./chart/website only: refs: - master