File tree Expand file tree Collapse file tree 4 files changed +31
-18
lines changed
.github/actions/setup-opentofu
modules/ephemeral_service Expand file tree Collapse file tree 4 files changed +31
-18
lines changed Original file line number Diff line number Diff line change 88runs :
99 using : composite
1010 steps :
11+ - name : Cache OpenTofu
12+ uses : actions/cache@v4
13+ with :
14+ path : ./tofu/config/${{ inputs.config }}/.terraform
15+ key : ${{ runner.os }}-tofu-${{ hashFiles('./tofu/config/${{ inputs.config }}/.terraform.lock.hcl') }}
16+ restore-keys : |
17+ ${{ runner.os }}-tofu-
1118 - name : Setup OpenTofu
1219 uses : opentofu/setup-opentofu@v1
1320 with :
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ resource "docker_image" "container" {
99 " ${ local . prefix } :${ var . image_tag } " ,
1010 " ${ module . ecr . repository_url } :${ var . image_tag } "
1111 ]
12+
13+ auth_config {
14+ host_name = data. aws_ecr_authorization_token . token . proxy_endpoint
15+ password = data. aws_ecr_authorization_token . token . password
16+ user_name = data. aws_ecr_authorization_token . token . user_name
17+ }
1218 }
1319
1420 triggers = {
@@ -28,8 +34,8 @@ resource "docker_registry_image" "container" {
2834
2935 auth_config {
3036 address = data. aws_ecr_authorization_token . token . proxy_endpoint
31- username = data. aws_ecr_authorization_token . token . user_name
3237 password = data. aws_ecr_authorization_token . token . password
38+ username = data. aws_ecr_authorization_token . token . user_name
3339 }
3440
3541 triggers = {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ terraform {
99
1010 docker = {
1111 source = " kreuzwerker/docker"
12- version = " ~> 3.6 "
12+ version = " ~> 3.7 "
1313 }
1414 }
1515}
You can’t perform that action at this time.
0 commit comments