28 lines · 702 B · Text
RawDownload
#!/bin/bash set -eusource script/lib/deploy-helpers.sh if [[ $# < 2 ]]; then  echo "Usage: $0 <production|staging|preview> <tag-name> (nightly is not yet supported)"  exit 1fienvironment=$1version=$2 if [[ ${environment} == "nightly" ]]; then  echo "nightly is not yet supported"  exit 1fi 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_clusterenvsubst < crates/collab/k8s/manifest.template.yml | kubectl apply -f - echo "deployed collab v${version} to ${environment}"