Skip to content

Commit

Permalink
Merge pull request #280 from signalwire/feat/azure-support
Browse files Browse the repository at this point in the history
Feat/azure-support
  • Loading branch information
lucasmellos authored May 10, 2024
2 parents 9b13f82 + 150f1e3 commit 7d3d8bd
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/iac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ on:
AZURE_SUBSCRIPTION_ID:
required: false
description: "Azure Subscription ID"
env:
ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

jobs:
terragrunt:
Expand Down Expand Up @@ -160,13 +164,13 @@ jobs:
project_id: ${{ inputs.PROJECT_ID }}
service_account: ${{ inputs.GCP_SA }}

- name: 'Authenticate Azure'
uses: azure/login@v1
if: inputs.AZURE_ENV == true
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# - name: 'Authenticate Azure'
# uses: azure/login@v1.5.1
# if: inputs.AZURE_ENV == true
# with:
# client-id: ${{ secrets.AZURE_CLIENT_ID }}
# tenant-id: ${{ secrets.AZURE_TENANT_ID }}
# subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Sops Binary Installer
uses: mdgreenwald/[email protected]
Expand Down Expand Up @@ -298,4 +302,5 @@ jobs:
OVH_CONSUMER_KEY: ${{ secrets.OVH_CONSUMER_KEY }}
OVH_CLOUD_PROJECT_SERVICE: ${{ secrets.OVH_CLOUD_PROJECT_SERVICE }}

- run: sudo chmod -R 777 /home/runner/_work/${{ github.event.repository.name }}
- run: sudo chmod -R 777 /home/runner/_work/${{ github.event.repository.name }}
continue-on-error: true

0 comments on commit 7d3d8bd

Please sign in to comment.