Skip to content

Commit

Permalink
Merge branch 'improve_auto_devops_migration_debug' into 'master'
Browse files Browse the repository at this point in the history
Add echo so that we know which branch was taken

See merge request gitlab-org/gitlab-ce!23499
  • Loading branch information
dzaporozhets committed Dec 3, 2018
2 parents 8a465b0 + e194d7b commit 8cd5004
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelogs/unreleased/improve_auto_devops_migration_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: 'Auto DevOps: Add echo for each branch of the deploy() function where we run
helm upgrade'
merge_request: 23499
author:
type: changed
3 changes: 3 additions & 0 deletions lib/gitlab/ci/templates/Auto-DevOps.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ rollout 100%:
fi

if [[ -n "$DB_INITIALIZE" && -z "$(helm ls -q "^$name$")" ]]; then
echo "Deploying first release with database initialization..."
helm upgrade --install \
--wait \
--set service.enabled="$service_enabled" \
Expand All @@ -680,6 +681,7 @@ rollout 100%:
"$name" \
chart/

echo "Deploying second release..."
helm upgrade --reuse-values \
--wait \
--set application.initializeCommand="" \
Expand All @@ -688,6 +690,7 @@ rollout 100%:
"$name" \
chart/
else
echo "Deploying new release..."
helm upgrade --install \
--wait \
--set service.enabled="$service_enabled" \
Expand Down

0 comments on commit 8cd5004

Please sign in to comment.