mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
11 lines
271 B
Bash
Executable File
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" ]]
|