Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
499 B
Bash
Raw Permalink Normal View History

2025-03-10 01:06:11 -07:00
#!/usr/bin/env bash
2024-01-02 14:05:31 -08:00
set -eu
source script/lib/deploy-helpers.sh
2024-11-18 21:41:22 +00:00
if [[ $# != 1 ]]; then
2024-01-02 14:05:31 -08:00
echo "Usage: $0 <production|staging> (postgrest not needed on preview or nightly)"
exit 1
fi
environment=$1
export_vars_for_environment ${environment}
export ZED_DO_CERTIFICATE_ID=$(doctl compute certificate list --format ID --no-header)
export ZED_KUBE_NAMESPACE=${environment}
target_zed_kube_cluster
envsubst < crates/collab/k8s/postgrest.template.yml | kubectl apply -f -
echo "deployed postgrest"