Files
openfoodnetwork/script/push_to_production.sh
Rohan Mitchell 23888b7576 chmod +x
2015-04-16 14:07:37 +10:00

11 lines
271 B
Bash
Executable File

#!/bin/bash
set -e
PROD_TEST=`git remote | grep -s 'production' || true`
if [[ "$PROD_TEST" != *production* ]]; then
git remote add production ubuntu@ofn-prod:apps/openfoodweb/current
fi
[[ $(git push production $BUILDKITE_COMMIT:master --force 2>&1) =~ "Done" ]]