Add error messages to server deployment for nightly

Mikayla created

Change summary

script/deploy           | 8 ++++++--
script/deploy-migration | 8 ++++++--
script/what-is-deployed | 8 ++++++--
3 files changed, 18 insertions(+), 6 deletions(-)

Detailed changes

script/deploy 🔗

@@ -4,13 +4,17 @@ set -eu
 source script/lib/deploy-helpers.sh
 
 if [[ $# < 2 ]]; then
-  # TODO kb nightly deploy?
-  echo "Usage: $0 <production|staging|preview> <tag-name>"
+  echo "Usage: $0 <production|staging|preview> <tag-name> (nightly is not yet supported)"
   exit 1
 fi
 environment=$1
 version=$2
 
+if [[ ${environment} == "nightly" ]]; then
+  echo "nightly is not yet supported"
+  exit 1
+fi
+
 export_vars_for_environment ${environment}
 image_id=$(image_id_for_version ${version})
 

script/deploy-migration 🔗

@@ -4,13 +4,17 @@ set -eu
 source script/lib/deploy-helpers.sh
 
 if [[ $# < 2 ]]; then
-  # TODO kb nightly migrations?
-  echo "Usage: $0 <production|staging|preview> <tag-name>"
+  echo "Usage: $0 <production|staging|preview> <tag-name> (nightly is not yet supported)"
   exit 1
 fi
 environment=$1
 version=$2
 
+if [[ ${environment} == "nightly" ]]; then
+  echo "nightly is not yet supported"
+  exit 1
+fi
+
 export_vars_for_environment ${environment}
 image_id=$(image_id_for_version ${version})
 

script/what-is-deployed 🔗

@@ -4,12 +4,16 @@ set -eu
 source script/lib/deploy-helpers.sh
 
 if [[ $# < 1 ]]; then
-  # TODO kb infra for nightly?
-  echo "Usage: $0 <production|staging|preview>"
+  echo "Usage: $0 <production|staging|preview> (nightly is not yet supported)"
   exit 1
 fi
 environment=$1
 
+if [[ ${environment} == "nightly" ]]; then
+  echo "nightly is not yet supported"
+  exit 1
+fi
+
 export_vars_for_environment ${environment}
 target_zed_kube_cluster