Include git hash in env variables for functions
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
terraform workspace select prod
|
||||
|
||||
# Plan the current execution with variables and verify
|
||||
terraform plan -var-file prod.tfvars -out plans/prod.plan
|
||||
GIT_HASH=$(git rev-parse --short HEAD)
|
||||
terraform plan -var-file prod.tfvars -var git_version=${GIT_HASH} -out plans/prod.plan
|
||||
|
||||
# Apply Configuration
|
||||
terraform apply plans/prod.plan
|
||||
|
||||
Reference in New Issue
Block a user