File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ locals {
20
20
git_branch = lower (replace (module. git_branch . stdout , " /" , " -" ))
21
21
git_sha = module. git_sha . stdout
22
22
23
- tag = " ${ var . repository_url } :${ local . git_branch } "
23
+ tag = " ${ var . repository_url } :${ local . git_branch } "
24
24
extra_tags = local. git_branch == " master" ? [" ${ var . repository_url } :${ local . git_sha } " , " ${ var . repository_url } :latest" ] : [" ${ var . repository_url } :${ local . git_sha } " ]
25
25
}
26
26
@@ -45,10 +45,10 @@ resource "null_resource" "build_image" {
45
45
${ local . args } ${ var . dockerfile } ;
46
46
docker push ${ local . tag } ;
47
47
48
- %{ for tag in local . extra_tags }
48
+ %{ for tag in local . extra_tags }
49
49
docker tag ${ local . tag } ${ tag }
50
50
docker push ${ tag }
51
- %{ endfor }
51
+ %{ endfor }
52
52
EOT
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments