mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
5b9916e34b
Fixes shellcheck errors in script/* Adds a couple trailing newlines. Adds `script/shellcheck-scripts` and associated CI machinery. Current set ultra-conservative, does not output warnings, only errors.
20 lines
491 B
Bash
Executable file
20 lines
491 B
Bash
Executable file
#!/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
|
|
|
|
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"
|