mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
db99d4fef1
Release Notes: - N/A
25 lines
634 B
Bash
Executable File
25 lines
634 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
source script/lib/deploy-helpers.sh
|
|
|
|
if [[ $# < 2 ]]; then
|
|
echo "Usage: $0 <production|staging> <tag-name>"
|
|
exit 1
|
|
fi
|
|
environment=$1
|
|
version=$2
|
|
|
|
export_vars_for_environment ${environment}
|
|
image_id=$(image_id_for_version ${version})
|
|
|
|
export ZED_DO_CERTIFICATE_ID=$(doctl compute certificate list --format ID --no-header)
|
|
export ZED_KUBE_NAMESPACE=${environment}
|
|
export ZED_IMAGE_ID=${image_id}
|
|
|
|
target_zed_kube_cluster
|
|
envsubst < crates/collab/k8s/collab.template.yml | kubectl apply -f -
|
|
kubectl -n "$environment" rollout status deployment/collab --watch
|
|
|
|
echo "deployed collab v${version} to ${environment}"
|