From b0ca4f59bcefde6cbfdfdc66447520f215c165b9 Mon Sep 17 00:00:00 2001 From: David Pomerenke <46022183+davidpomerenke@users.noreply.github.com> Date: Sat, 9 Mar 2024 10:02:36 +0000 Subject: [PATCH] ci(deploy.yml): add terrafrom deployment to gh action --- .github/workflows/deploy.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f5de3372..911d27e7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -76,10 +76,19 @@ jobs: with: creds: ${{ secrets.AZURE_CREDENTIALS }} - - name: Azure CLI script - uses: azure/CLI@v1 + - name: Setup Terraform + uses: hashicorp/setup-terraform@v3 with: - azcliversion: latest - inlineScript: | - az account show + terraform_version: 1.7.4 + + - name: Terraform Init + run: terraform init + + - name: Terraform Apply + run: terraform apply -auto-approve + env: + TF_VAR_MEDIACLOUD_API_TOKEN: ${{ secrets.MEDIACLOUD_API_TOKEN }} + TF_VAR_ACLED_EMAIL: ${{ secrets.ACLED_EMAIL }} + TF_VAR_ACLED_KEY: ${{ secrets.ACLED_KEY }} + TF_VAR_ZENROWS_API_KEY: ${{ secrets.ZENROWS_API_KEY }}