mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 09:47:54 +00:00
22 lines
No EOL
489 B
Bash
Executable file
22 lines
No EOL
489 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eu
|
|
source script/lib/deploy-helpers.sh
|
|
|
|
if [[ $# < 2 ]]; then
|
|
echo "Usage: $0 <production|staging|preview> <tag-name>"
|
|
exit 1
|
|
fi
|
|
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}
|
|
|
|
target_zed_kube_cluster
|
|
envsubst < crates/collab/k8s/manifest.template.yml | kubectl apply -f -
|
|
|
|
echo "deployed collab v${version} to ${environment}" |