Created
August 16, 2021 18:10
-
-
Save kczarzasty/ea00f539919943d49bd325dbb2c01234 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 | |
TAG=${1} | |
NS=${2} | |
URL=${3} | |
export BUILD_NUMBER=${TAG} | |
export NAMESPACE=${NS} | |
export ENV_URL=${URL} | |
for f in templates/*.yml | |
do | |
envsubst < $f > “.generated/$(basename $f)” | |
done | |
kubectl apply -f .generated/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment