add a combo build-and-deploy script

main
Brian Hicks 2021-09-14 08:00:33 -05:00
parent a5ef565b5f
commit 4b6c85e304
1 changed files with 13 additions and 0 deletions

13
build-and-deploy.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail
BUILD_TARGET="${1:-}"
DEPLOY_TARGET="${2:-}"
if test -z "$BUILD_TARGET" || test -z "$DEPLOY_TARGET"; then
echo "USAGE: ${0:-} BUILD_TARGET DEPLOY_TARGET"
exit 1
fi
./build.sh "$BUILD_TARGET"
./deploy.sh "$DEPLOY_TARGET" result