Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(iac): code improvement #250

Merged
merged 4 commits into from
Jun 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(iac): multiple scope logins
  • Loading branch information
Abhi Markan committed Jun 16, 2023
commit 063d62baba83ab65293cacc88b5ddc6d66e5cf8a
15 changes: 15 additions & 0 deletions .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ jobs:
--subnet-prefixes ${{ secrets.VNET_SUBNET_PREFIX }} \
--tags ${{ env.TAGS }}

- name: Login 🔐
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS_AMI }}

- name: AMI Pre-production 🔀
if: contains('["dev", "staging"]', env.TARGET)
uses: Azure/cli@v1.0.7
Expand Down Expand Up @@ -227,6 +232,11 @@ jobs:
--name vnet-peer-ami-${{ env.TARGET }}-${{ env.PRODUCT }}-${{ vars.VERSION }} \
--query peeringState)"

- name: Login 🔐
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS_VPN }}

- name: VNET Peer - VPN 🔀
uses: Azure/cli@v1.0.7
with:
Expand Down Expand Up @@ -255,6 +265,11 @@ jobs:
--name vnet-peer-vpn-${{ env.TARGET }}-${{ env.PRODUCT }}-${{ vars.VERSION }} \
--query peeringState)"

- name: Login 🔐
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Route table 🌐
uses: Azure/cli@v1.0.7
with:
Expand Down