chore: add opentofu action
This commit is contained in:
9
.github/workflows/infra-build.yml
vendored
9
.github/workflows/infra-build.yml
vendored
@@ -19,12 +19,6 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Opentofu CLI
|
||||
run: |
|
||||
curl -L https://github.com/opentofu/opentofu/releases/latest/download/opentofu-linux-amd64 -o /usr/local/bin/tofu
|
||||
chmod +x /usr/local/bin/tofu
|
||||
tofu version
|
||||
|
||||
- name: Generate Dynamic Vars (Secrets)
|
||||
run: |
|
||||
cat <<EOF > terraform.auto.tfvars
|
||||
@@ -37,6 +31,9 @@ jobs:
|
||||
passphrase = "${{ secrets.SSH_PASSPHRASE }}"
|
||||
EOF
|
||||
|
||||
- name: Setup Opentofu
|
||||
uses: opentofu/setup-opentofu@v1
|
||||
|
||||
- name: Opentofu Init
|
||||
run: tofu init
|
||||
|
||||
|
Reference in New Issue
Block a user