Add OpenTofu setup action and update workflows for OpenTofu integration
This commit is contained in:
@@ -29,6 +29,9 @@ jobs:
|
|||||||
- name: Setup Terraform environment
|
- name: Setup Terraform environment
|
||||||
uses: ./.github/actions/setup-terraform-env
|
uses: ./.github/actions/setup-terraform-env
|
||||||
|
|
||||||
|
- name: Setup Terraform environment
|
||||||
|
uses: ./.github/actions/setup-opentofu-env
|
||||||
|
|
||||||
- name: Setup Kubernetes Environment
|
- name: Setup Kubernetes Environment
|
||||||
uses: ./.github/actions/setup-k8s-env
|
uses: ./.github/actions/setup-k8s-env
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -23,17 +23,17 @@ jobs:
|
|||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
uses: ./.github/actions/setup-env
|
uses: ./.github/actions/setup-env
|
||||||
|
|
||||||
- name: Setup Terraform environment
|
- name: Setup OpenTofu environment
|
||||||
uses: ./.github/actions/setup-terraform-env
|
uses: ./.github/actions/setup-opentofu-env
|
||||||
|
|
||||||
- name: Terraform Init and Validate
|
- name: OpenTofu Init and Validate
|
||||||
env:
|
env:
|
||||||
BW_PROJECT_ID: ${{ secrets.BW_PROJECT_ID }}
|
BW_PROJECT_ID: ${{ secrets.BW_PROJECT_ID }}
|
||||||
BW_ORGANIZATION_ID: ${{ secrets.BW_ORGANIZATION_ID }}
|
BW_ORGANIZATION_ID: ${{ secrets.BW_ORGANIZATION_ID }}
|
||||||
BW_ACCESS_TOKEN: ${{ secrets.BW_ACCESS_TOKEN }}
|
BW_ACCESS_TOKEN: ${{ secrets.BW_ACCESS_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
cd terraform/aws-iac
|
cd terraform/aws-iac
|
||||||
sectool -f ../../sectool.json exec terraform init
|
sectool -f ../../sectool.json exec tofu init
|
||||||
sectool -f ../../sectool.json exec terraform validate
|
sectool -f ../../sectool.json exec tofu validate
|
||||||
sectool -f ../../sectool.json exec terraform fmt -check
|
sectool -f ../../sectool.json exec tofu fmt -check
|
||||||
sectool -f ../../sectool.json exec terraform plan
|
sectool -f ../../sectool.json exec tofu plan
|
||||||
|
|||||||
Reference in New Issue
Block a user