Display deployment output in real time

This reverts commit 485eee4bdd.
This commit is contained in:
Rohan Mitchell
2015-05-06 20:02:03 +10:00
parent 50d2ddc05f
commit bd6bac8874
2 changed files with 4 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
set -e
set -ex
# Add production git remote if required
PROD_TEST=`git remote | grep -s 'production' || true`
@@ -12,6 +12,4 @@ 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"
output=$(git push production $BUILDKITE_COMMIT:master --force 2>&1)
echo "$output"
[[ $output =~ "Done" ]]
[[ $(git push production $BUILDKITE_COMMIT:master --force 2>&1) =~ "Done" ]]

View File

@@ -1,6 +1,6 @@
#!/bin/bash
set -e
set -ex
source ./script/ci/includes.sh
# Add staging git remote if required
@@ -16,6 +16,4 @@ echo "--- Loading baseline data"
ssh ofn-staging2 "/home/openfoodweb/apps/openfoodweb/current/script/ci/load_staging_baseline.sh"
echo "--- Pushing to staging"
output=$(git push staging2 $BUILDKITE_COMMIT:master --force 2>&1)
echo "$output"
[[ $output =~ "Done" ]]
[[ $(git push staging2 $BUILDKITE_COMMIT:master --force 2>&1) =~ "Done" ]]