Created
February 22, 2020 15:24
-
-
Save hajowieland/8877523e58b12337ccc91fdbad937857 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# Depending on the environment you want to deploy there could be different custom values you want set | |
# This loop checks which stages are present and then lints them together with the helm chart | |
for chart in helm-charts/* ; do | |
if [ `ls $chart | grep 'prd'` ]; then | |
helm lint $chart -f $chart/prd_values.yaml | |
elif [ `ls $chart | grep 'dev'` ]; then | |
helm lint $chart -f $chart/dev_values.yaml | |
else | |
helm lint $chart | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment