From 4b6c85e304ff9b0d5d6cbd589cbd05c147ce0a9c Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Tue, 14 Sep 2021 08:00:33 -0500 Subject: [PATCH] add a combo build-and-deploy script --- build-and-deploy.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 build-and-deploy.sh diff --git a/build-and-deploy.sh b/build-and-deploy.sh new file mode 100755 index 0000000..2405cef --- /dev/null +++ b/build-and-deploy.sh @@ -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