Deploy scripts display their output

This commit is contained in:
Rohan Mitchell
2015-05-06 18:07:50 +10:00
parent f84e704d99
commit 485eee4bdd
2 changed files with 6 additions and 2 deletions

View File

@@ -12,4 +12,6 @@ echo "--- Saving baseline data for staging"
ssh ofn-staging2 "/home/openfoodweb/apps/openfoodweb/current/script/ci/save_staging_baseline.sh $BUILDKITE_COMMIT"
echo "--- Pushing to production"
[[ $(git push production $BUILDKITE_COMMIT:master --force 2>&1) =~ "Done" ]]
output=$(git push production $BUILDKITE_COMMIT:master --force 2>&1)
echo $output
[[ $output =~ "Done" ]]

View File

@@ -16,4 +16,6 @@ echo "--- Loading baseline data"
ssh ofn-staging2 "/home/openfoodweb/apps/openfoodweb/current/script/ci/load_staging_baseline.sh"
echo "--- Pushing to staging"
[[ $(git push staging2 $BUILDKITE_COMMIT:master --force 2>&1) =~ "Done" ]]
output=$(git push staging2 $BUILDKITE_COMMIT:master --force 2>&1)
echo $output
[[ $output =~ "Done" ]]