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 }}