zed/script/deploy

18 lines
404 B
Text
Raw Normal View History

#!/bin/bash
set -eu
2022-10-21 20:15:34 +00:00
source script/lib/deploy-helpers.sh
if [[ $# < 2 ]]; then
echo "Usage: $0 <production|staging|preview> <tag-name>"
exit 1
fi
export ZED_KUBE_NAMESPACE=$1
COLLAB_VERSION=$2
2022-10-21 20:15:34 +00:00
export_vars_for_environment $ZED_KUBE_NAMESPACE
export ZED_IMAGE_ID=$(image_id_for_version $COLLAB_VERSION)
target_zed_kube_cluster
2022-04-12 00:18:12 +00:00
envsubst < crates/collab/k8s/manifest.template.yml | kubectl apply -f -