Commit a0ee6377 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'qa-use-tiller-2.14.2-for-review-apps' into 'master'

Use the Helm `--atomic` flag when deploying Review Apps

See merge request gitlab-org/gitlab-ce!31238
parents 004b72fe 9870e86f
......@@ -189,17 +189,11 @@ function deploy() {
gitlab_shell_image_repository="${IMAGE_REPOSITORY}/gitlab-shell"
gitlab_workhorse_image_repository="${IMAGE_REPOSITORY}/gitlab-workhorse-${IMAGE_VERSION}"
# Cleanup and previous installs, as FAILED and PENDING_UPGRADE will cause errors with `upgrade`
if [ "$CI_ENVIRONMENT_SLUG" != "production" ] && previous_deploy_failed "$CI_ENVIRONMENT_SLUG" ; then
echo "Deployment in bad state, cleaning up $CI_ENVIRONMENT_SLUG"
delete
fi
create_application_secret
HELM_CMD=$(cat << EOF
helm upgrade --install \
--wait \
--atomic \
--timeout 900 \
--set releaseOverride="$CI_ENVIRONMENT_SLUG" \
--set global.appConfig.enableUsagePing=false \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment