Skip to content

Commit d9893e9

Browse files
authored
ci: add new terraform workflow with manual trigger event (#77)
2 parents 2f389cd + 8dae09b commit d9893e9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run Terraform
2+
3+
on:
4+
workflow_dispatch: {}
5+
6+
jobs:
7+
terraform:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4.1.1
13+
14+
- name: Setup Terraform
15+
uses: hashicorp/setup-terraform@v3.0.0
16+
17+
- name: Navigate to target folder
18+
run: |
19+
ls -la
20+
echo "Navigating to `terraform-aws-windows-instance`"
21+
cd projects/terraform-aws-windows-instance
22+
ls -la
23+
24+
- name: Terraform Init
25+
run: terraform init
26+
27+
- name: Terraform Plan
28+
run: terraform plan
29+
30+
- name: Terraform Apply
31+
run: terraform apply --auto-approve

0 commit comments

Comments
 (0)