Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T01:38:28.337Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

deploy-helpers.sh

38 lines · 983 B · shellscript
1function export_vars_for_environment {
2  local environment=$1
3  local env_file="crates/collab/k8s/environments/${environment}.sh"
4  if [[ ! -f $env_file ]]; then
5    echo "Invalid environment name '${environment}'" >&2
6    exit 1
7  fi
8  export $(grep -v '^#' $env_file | grep -v '^[[:space:]]*$')
9}
10
11function target_zed_kube_cluster {
12  if [[ $(kubectl config current-context 2> /dev/null) != do-nyc1-zed-1 ]]; then
13    doctl kubernetes cluster kubeconfig save zed-1
14  fi
15}
16
17function tag_for_environment {
18  if [[ "$1" == "production" ]]; then
19    echo "collab-production"
20  elif [[ "$1" == "staging" ]]; then
21    echo "collab-staging"
22  else
23    echo "Invalid environment name '${environment}'" >&2
24    exit 1
25  fi
26}
27
28function url_for_environment {
29  if [[ "$1" == "production" ]]; then
30    echo "https://collab.zed.dev"
31  elif [[ "$1" == "staging" ]]; then
32    echo "https://collab-staging.zed.dev"
33  else
34    echo "Invalid environment name '${environment}'" >&2
35    exit 1
36  fi
37}
38
Served at tenant.openagents/omega Member data and write actions are omitted.