Skip to content

Commit

Permalink
ci(deploy.yml): add terrafrom deployment to gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpomerenke committed Mar 9, 2024
1 parent 7974b39 commit b0ca4f5
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit b0ca4f5

Please sign in to comment.