20 lines
599 B
YAML
20 lines
599 B
YAML
name: Setup OpenTofu Environment
|
|
description: Prepare the environment for A13labs CI/CD pipelines
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup OpenTofu
|
|
shell: bash
|
|
run: |
|
|
TOFU_VERSION="1.9.1"
|
|
curl -sL "https://github.com/opentofu/opentofu/releases/download/v${TOFU_VERSION}/tofu_${TOFU_VERSION}_linux_amd64.zip" -o /tmp/tofu.zip
|
|
unzip -o /tmp/tofu.zip -d /usr/local/bin
|
|
rm /tmp/tofu.zip
|
|
tofu version
|
|
|
|
- name: Install required python packages
|
|
shell: bash
|
|
run: |
|
|
python3 -m pip install -r requirements/opentofu.txt
|