Skip to content

tgenv error

tgenv error #3

Workflow file for this run

name: validate-iac
on:
push:
workflow_call:
env:
tf_version: '1.6.2'
tg_version: '0.55.15'
environment: 'stage'
jobs:
validate-iac:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install opentofu
uses: opentofu/setup-opentofu@v1
with:
tofu_version: ${{ env.tf_version }}
- name: install tgenv
run: git clone --depth 1 --branch main https://github.com/tgenv/tgenv.git ~/.tgenv
- name: install terragrunt
run: ~/.tgenv/bin/tgenv install ${{ env.tg_version }}
- name: validate
run: |
cd ./tofu/environments/${{ env.environment }}/terraform/tfbackend
terragrun init
terragrunt validate