Skip to content

Commit

Permalink
Login to az
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGHippo committed Oct 7, 2024
1 parent ee753b2 commit 4a1f1cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/tf-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ jobs:
- name: IP address env
run: echo "CURRENT_IP=$(curl https://api.ipify.org)" >> $GITHUB_ENV

# Login to Azure using OIDC
- name: Login to Azure CLI
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

# Allows the current IP address access to the storage account for later terraform steps in the workflow
- name: Azure Storage IP access
run: az storage account network-rule add -g ${{ vars.RESOURCE_NAME_PREFIX }}-rg --account-name ${{ vars.WEBAPP_STORAGE_ACCOUNT_NAME }} --ip-address $CURRENT_IP
Expand Down

0 comments on commit 4a1f1cd

Please sign in to comment.