File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ name : Opsless - Infra
3+
4+ on :
5+ push :
6+ branches :
7+ - main
8+ paths :
9+ - ' opsless_infra/**' # Only trigger if files in opsless_infra/ are changed
10+ - ' .github/workflows/opsless_infra.yml' # (optional) if you want updates to the workflow itself to trigger a run
11+
12+ jobs :
13+ terraform :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v3
18+
19+ - name : Setup Terraform
20+ uses : hashicorp/setup-terraform@v2
21+ with :
22+ terraform_version : 1.4.0 # Set your preferred version
23+
24+ - name : Terraform Init
25+ working-directory : opsless_infra
26+ run : terraform init
27+
28+ - name : Terraform Plan
29+ working-directory : opsless_infra
30+ run : terraform plan
31+
32+ - name : Terraform Apply
33+ working-directory : opsless_infra
34+ run : terraform apply -auto-approve
You can’t perform that action at this time.
0 commit comments