File tree 2 files changed +56
-0
lines changed 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Default Workflow (main)"
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ run-terraform-apply :
11
+ uses : ./.github/workflows/terraform-apply.yml
12
+ permissions :
13
+ contents : read
14
+ secrets : inherit
Original file line number Diff line number Diff line change
1
+ name : " Terraform Apply"
2
+
3
+ on :
4
+ workflow_call :
5
+
6
+ env :
7
+ TF_CLOUD_ORGANIZATION : " DSB"
8
+ TF_API_TOKEN : " ${{ secrets.TF_API_TOKEN }}"
9
+ TF_WORKSPACE : " dsb-gcp-devsecops-infra"
10
+ CONFIG_DIRECTORY : " ./"
11
+
12
+ jobs :
13
+ terraform :
14
+ name : " Terraform Apply"
15
+ runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : read
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Upload Configuration
23
+ uses : hashicorp/tfc-workflows-github/actions/upload-configuration@v1.3.1
24
+ id : apply-upload
25
+ with :
26
+ workspace : ${{ env.TF_WORKSPACE }}
27
+ directory : ${{ env.CONFIG_DIRECTORY }}
28
+
29
+ - name : Create Apply Run
30
+ uses : hashicorp/tfc-workflows-github/actions/create-run@v1.3.1
31
+ id : apply-run
32
+ with :
33
+ workspace : ${{ env.TF_WORKSPACE }}
34
+ configuration_version : ${{ steps.apply-upload.outputs.configuration_version_id }}
35
+
36
+ - name : Apply
37
+ uses : hashicorp/tfc-workflows-github/actions/apply-run@v1.3.1
38
+ if : fromJSON(steps.apply-run.outputs.payload).data.attributes.actions.IsConfirmable
39
+ id : apply
40
+ with :
41
+ run : ${{ steps.apply-run.outputs.run_id }}
42
+ comment : " Apply Run from GitHub Actions CI ${{ github.sha }}"
You can’t perform that action at this time.
0 commit comments