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:
|
with:
|
||||||
fetch-depth: 0
|
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)
|
- name: Generate Dynamic Vars (Secrets)
|
||||||
run: |
|
run: |
|
||||||
cat <<EOF > terraform.auto.tfvars
|
cat <<EOF > terraform.auto.tfvars
|
||||||
@@ -37,6 +31,9 @@ jobs:
|
|||||||
passphrase = "${{ secrets.SSH_PASSPHRASE }}"
|
passphrase = "${{ secrets.SSH_PASSPHRASE }}"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
- name: Setup Opentofu
|
||||||
|
uses: opentofu/setup-opentofu@v1
|
||||||
|
|
||||||
- name: Opentofu Init
|
- name: Opentofu Init
|
||||||
run: tofu init
|
run: tofu init
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user