-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·29 lines (24 loc) · 1.15 KB
/
deploy.sh
File metadata and controls
executable file
·29 lines (24 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
### Script meant for shipit to set the appropriate environment variables,
### and deploy the helm chart with the required values.
set -euo pipefail
git_sha1=$(git rev-parse HEAD)
helm dep up ./helm/cas-airflow
helm repo add cas-postgres https://bcgov.github.io/cas-postgres/
helm repo update
helm upgrade --install \
-f ./helm/cas-airflow-postgres-cluster/values.yaml \
-f "./helm/cas-airflow/values-$ENVIRONMENT.yaml" \
cas-airflow-db cas-postgres/cas-postgres-cluster
helm upgrade --install --timeout 900s \
--namespace "$AIRFLOW_NAMESPACE_PREFIX-$ENVIRONMENT" \
-f ./helm/cas-airflow/values.yaml \
--set-file airflow.apiServer.apiServerConfig=./helm/cas-airflow/webserver_config.py \
-f "./helm/cas-airflow/values-$ENVIRONMENT.yaml" \
--set namespaces.airflow="$AIRFLOW_NAMESPACE_PREFIX-$ENVIRONMENT" \
--set namespaces.ggircs="$GGIRCS_NAMESPACE_PREFIX-$ENVIRONMENT" \
--set namespaces.ciip="$CIIP_NAMESPACE_PREFIX-$ENVIRONMENT" \
--set namespaces.cif="$CIF_NAMESPACE_PREFIX-$ENVIRONMENT" \
--set namespaces.obps="$OBPS_NAMESPACE_PREFIX-$ENVIRONMENT" \
--set airflow.defaultAirflowTag="$git_sha1" \
cas-airflow ./helm/cas-airflow