File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -40,19 +40,25 @@ jobs:
4040 --image $IMAGE_NAME:$IMAGE_TAG \
4141 --image $IMAGE_NAME:latest .
4242
43+ # ------------------- Setup Terraform -------------------
44+ - name : Setup Terraform
45+ uses : hashicorp/setup-terraform@v3
46+ with :
47+ terraform_version : 1.9.5 # or your desired version
48+
4349 # ------------------- Terraform Init -------------------
4450 - name : Terraform Init
45- working-directory : terraformv3/examples/complete/container_platform/ # update path to your Terraform files
51+ working-directory : terraformv3/examples/complete/container_platform
4652 run : terraform init
4753
4854 # ------------------- Terraform Plan -------------------
4955 - name : Terraform Plan
50- working-directory : terraformv3/examples/complete/container_platform/
56+ working-directory : terraformv3/examples/complete/container_platform
5157 run : terraform plan -out=tfplan
5258
5359 # ------------------- Terraform Apply -------------------
5460 - name : Terraform Apply
55- working-directory : terraformv3/examples/complete/container_platform/
61+ working-directory : terraformv3/examples/complete/container_platform
5662 run : terraform apply -auto-approve tfplan
5763
5864 # ------------------- Determine Idle Slot -------------------
You can’t perform that action at this time.
0 commit comments