Improve deploy scripts
This commit is contained in:
parent
0c9ceb51e6
commit
2f1ddc0d0f
5 changed files with 57 additions and 30 deletions
|
@ -7,11 +7,16 @@ if [[ $# < 2 ]]; then
|
|||
echo "Usage: $0 <production|staging|preview> <tag-name>"
|
||||
exit 1
|
||||
fi
|
||||
export ZED_KUBE_NAMESPACE=$1
|
||||
COLLAB_VERSION=$2
|
||||
environment=$1
|
||||
version=$2
|
||||
|
||||
export_vars_for_environment ${environment}
|
||||
image_id=$(image_id_for_version ${version})
|
||||
|
||||
export ZED_KUBE_NAMESPACE=${environment}
|
||||
export ZED_IMAGE_ID=${image_id}
|
||||
|
||||
export_vars_for_environment $ZED_KUBE_NAMESPACE
|
||||
export ZED_IMAGE_ID=$(image_id_for_version $COLLAB_VERSION)
|
||||
target_zed_kube_cluster
|
||||
|
||||
envsubst < crates/collab/k8s/manifest.template.yml | kubectl apply -f -
|
||||
|
||||
echo "deployed collab v${version} to ${environment}"
|
Loading…
Add table
Add a link
Reference in a new issue