mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
Add error messages to server deployment for nightly
This commit is contained in:
parent
6680e1e9fe
commit
5cf953d559
3 changed files with 18 additions and 6 deletions
|
@ -4,13 +4,17 @@ set -eu
|
||||||
source script/lib/deploy-helpers.sh
|
source script/lib/deploy-helpers.sh
|
||||||
|
|
||||||
if [[ $# < 2 ]]; then
|
if [[ $# < 2 ]]; then
|
||||||
# TODO kb nightly deploy?
|
echo "Usage: $0 <production|staging|preview> <tag-name> (nightly is not yet supported)"
|
||||||
echo "Usage: $0 <production|staging|preview> <tag-name>"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
environment=$1
|
environment=$1
|
||||||
version=$2
|
version=$2
|
||||||
|
|
||||||
|
if [[ ${environment} == "nightly" ]]; then
|
||||||
|
echo "nightly is not yet supported"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
export_vars_for_environment ${environment}
|
export_vars_for_environment ${environment}
|
||||||
image_id=$(image_id_for_version ${version})
|
image_id=$(image_id_for_version ${version})
|
||||||
|
|
||||||
|
|
|
@ -4,13 +4,17 @@ set -eu
|
||||||
source script/lib/deploy-helpers.sh
|
source script/lib/deploy-helpers.sh
|
||||||
|
|
||||||
if [[ $# < 2 ]]; then
|
if [[ $# < 2 ]]; then
|
||||||
# TODO kb nightly migrations?
|
echo "Usage: $0 <production|staging|preview> <tag-name> (nightly is not yet supported)"
|
||||||
echo "Usage: $0 <production|staging|preview> <tag-name>"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
environment=$1
|
environment=$1
|
||||||
version=$2
|
version=$2
|
||||||
|
|
||||||
|
if [[ ${environment} == "nightly" ]]; then
|
||||||
|
echo "nightly is not yet supported"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
export_vars_for_environment ${environment}
|
export_vars_for_environment ${environment}
|
||||||
image_id=$(image_id_for_version ${version})
|
image_id=$(image_id_for_version ${version})
|
||||||
|
|
||||||
|
|
|
@ -4,12 +4,16 @@ set -eu
|
||||||
source script/lib/deploy-helpers.sh
|
source script/lib/deploy-helpers.sh
|
||||||
|
|
||||||
if [[ $# < 1 ]]; then
|
if [[ $# < 1 ]]; then
|
||||||
# TODO kb infra for nightly?
|
echo "Usage: $0 <production|staging|preview> (nightly is not yet supported)"
|
||||||
echo "Usage: $0 <production|staging|preview>"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
environment=$1
|
environment=$1
|
||||||
|
|
||||||
|
if [[ ${environment} == "nightly" ]]; then
|
||||||
|
echo "nightly is not yet supported"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
export_vars_for_environment ${environment}
|
export_vars_for_environment ${environment}
|
||||||
target_zed_kube_cluster
|
target_zed_kube_cluster
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue