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