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 8
8
runs :
9
9
using : composite
10
10
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-
11
18
- name : Setup OpenTofu
12
19
uses : opentofu/setup-opentofu@v1
13
20
with :
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ resource "docker_image" "container" {
9
9
" ${ local . prefix } :${ var . image_tag } " ,
10
10
" ${ module . ecr . repository_url } :${ var . image_tag } "
11
11
]
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
+ }
12
18
}
13
19
14
20
triggers = {
@@ -28,8 +34,8 @@ resource "docker_registry_image" "container" {
28
34
29
35
auth_config {
30
36
address = data. aws_ecr_authorization_token . token . proxy_endpoint
31
- username = data. aws_ecr_authorization_token . token . user_name
32
37
password = data. aws_ecr_authorization_token . token . password
38
+ username = data. aws_ecr_authorization_token . token . user_name
33
39
}
34
40
35
41
triggers = {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ terraform {
9
9
10
10
docker = {
11
11
source = " kreuzwerker/docker"
12
- version = " ~> 3.6 "
12
+ version = " ~> 3.7 "
13
13
}
14
14
}
15
15
}
You can’t perform that action at this time.
0 commit comments