diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a236ad8..c317fe6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,13 +10,13 @@ jobs: runs-on: ubuntu-latest container: catthehacker/ubuntu:act-latest steps: - - name: Install Terraform Static Binary + - name: Install Terraform via Apt-Mirror run: | - curl -sSL https://hashicorp.com -o terraform.zip - unzip terraform.zip - mv terraform /usr/local/bin/ - rm terraform.zip - terraform --version + apt-get update && apt-get install -y curl gnupg lsb-release + curl -fsSL https://hashicorp.com | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg + echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list + apt-get update && apt-get install -y terraform + - name: Checkout Code uses: actions/checkout@v4