Skip to content

Instantly share code, notes, and snippets.

@kczarzasty
Created August 16, 2021 18:10
Show Gist options
  • Save kczarzasty/ea00f539919943d49bd325dbb2c01234 to your computer and use it in GitHub Desktop.
Save kczarzasty/ea00f539919943d49bd325dbb2c01234 to your computer and use it in GitHub Desktop.
#!/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