File tree Expand file tree Collapse file tree 4 files changed +4
-17
lines changed
Expand file tree Collapse file tree 4 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 11data "external" "git_branch" {
22 program = [" bash" , " ${ path . module } /../../scripts/get_git_branch.sh" ]
33}
4-
5- data "external" "deploy_source" {
6- program = [" bash" , " ${ path . module } /../../scripts/get_deploy_source.sh" ]
7- }
Original file line number Diff line number Diff line change 44 project_identifier = " vaccinations-app"
55 project_identifier_shortcode = " vita"
66
7- environment = " dev"
8- git_branch = coalesce (data. external . git_branch . result . output , " main " )
9- deploy_source = coalesce (data . external . deploy_source . result . output , " lo " )
7+ environment = " dev"
8+ git_branch = coalesce (data. external . git_branch . result . output , " na " )
9+ deploy_workspace = terraform . workspace == " default " ? " gh " : terraform . workspace
1010
1111 default_tags = {
1212 ManagedBy = " Terraform"
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ module "deploy" {
22 source = " ../../modules/deploy_app"
33
44 open-next-path = " ../../../.open-next"
5- prefix = " ${ local . deploy_source } -${ local . git_branch } -${ local . project_identifier_shortcode } "
5+ prefix = " ${ local . deploy_workspace } -${ local . git_branch } -${ local . project_identifier_shortcode } "
66 default_tags = local. default_tags
77}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments