Include git hash in env variables for functions

This commit is contained in:
2024-05-26 11:10:22 +02:00
parent d2b05f72a6
commit 43991cc633
11 changed files with 138 additions and 108 deletions

View File

@@ -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