Add nightly environment for collab
Also, move postgrest service + deployment into a separate manifest file, which is deployed via a separate script, `deploy-postgrest`. This way, we don't have unused postgrest instances in preview and nightly, since those use the prod database. Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
9996fbee54
commit
5b35dedc5f
10 changed files with 83 additions and 269 deletions
25
script/deploy-postgrest
Executable file
25
script/deploy-postgrest
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
source script/lib/deploy-helpers.sh
|
||||
|
||||
if [[ $# < 1 ]]; then
|
||||
echo "Usage: $0 <production|staging> (postgrest not needed on preview or nightly)"
|
||||
exit 1
|
||||
fi
|
||||
environment=$1
|
||||
|
||||
if [[ ${environment} == "preview" || ${environment} == "nightly" ]]; then
|
||||
echo "website does not exist in preview or nightly"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
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"
|
Loading…
Add table
Add a link
Reference in a new issue