File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 13
13
config_directory :
14
14
type : string
15
15
default : " ./"
16
- secrets :
17
- cloud_token :
18
- required : true
19
16
20
17
jobs :
21
- apply :
22
- name : Apply
18
+ terraform_apply :
19
+ name : Terraform Apply via Terraform Cloud API
23
20
runs-on : ubuntu-latest
24
21
22
+ environment :
23
+ name : ${{ inputs.cloud_workspace }}
24
+ url : ${{ steps.apply-run.outputs.run_link }}
25
+
25
26
outputs :
26
27
status : ${{ steps.apply-run.outputs.status }}
27
28
payload : ${{ steps.apply-run.outputs.payload }}
31
32
32
33
env :
33
34
TF_CLOUD_ORGANIZATION : ${{ inputs.cloud_organization }}
34
- TF_API_TOKEN : ${{ secrets.cloud_token }}
35
+ TF_API_TOKEN : ${{ secrets.TF_API_TOKEN }}
35
36
TF_WORKSPACE : ${{ inputs.cloud_workspace }}
36
37
CONFIG_DIRECTORY : ${{ inputs.config_directory }}
37
38
Original file line number Diff line number Diff line change 6
6
inputs :
7
7
workspace :
8
8
type : string
9
- secrets :
10
- token :
11
- required : true
12
9
13
10
jobs :
14
11
terraform_destroy :
15
- name : Terraform Destroy
12
+ name : Terraform Destroy via CLI
16
13
17
14
runs-on : ubuntu-latest
18
15
28
25
- name : Setup Terraform
29
26
uses : hashicorp/setup-terraform@v2
30
27
with :
31
- cli_config_credentials_token : ${{ secrets.token }}
28
+ cli_config_credentials_token : ${{ secrets.TF_API_TOKEN }}
32
29
33
30
- name : Terraform Init
34
31
run : terraform init
You can’t perform that action at this time.
0 commit comments