Created
November 10, 2023 10:16
-
-
Save minrk/207d852d8faf613dc840b7238b0278f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ex | |
deployments="$@" | |
if [[ -z "$deployments" ]]; then | |
deployments="staging prod ovh2" | |
fi | |
helm dep up mybinder | |
chartpress --no-build | |
python3 scripts/datacenters.py | |
for deployment in $deployments; do | |
echo $deployment | |
kubectx $deployment # assumes you have kubectx set up like me! | |
common_config=$(ls config/common/*.yaml secrets/config/common*.yaml secrets/config/common/*.yaml | awk '{print "-f " $1}') | |
helm diff -q upgrade $deployment \ | |
./mybinder/ \ | |
${common_config} \ | |
-f config/$deployment.yaml \ | |
-f secrets/config/$deployment.yaml \ | |
| grep -C 1 -v '^[[:space:]]' || echo "no changes" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment