-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Abhi Markan
committed
Nov 9, 2023
1 parent
0eb9b34
commit 0f4a6ab
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -213,6 +213,34 @@ jobs: | |
--name vnet-peer-apim-${{ env.TARGET }}-${{ env.PRODUCT }}-${{ vars.VERSION }} \ | ||
--query peeringState)" | ||
- name: VNET Peer - UKS 🔀 | ||
uses: Azure/[email protected] | ||
with: | ||
inlineScript: | | ||
# UKS VNET peering | ||
# Local VNET peer | ||
az network vnet peering create \ | ||
--name vnet-peer-uks-${{ env.TARGET }}-${{ env.PRODUCT }}-${{ vars.VERSION }} \ | ||
--vnet-name vnet-${{ env.PRODUCT }}-${{ env.TARGET }}-${{ vars.VERSION }} \ | ||
--remote-vnet $(az network vnet show --subscription ${{ secrets.REMOTE_VNET_SUBSCRIPTION_UKS }} --resource-group ${{ secrets.REMOTE_VNET_RESOURCE_GROUP_UKS }} --name ${{ secrets.REMOTE_VNET_NAME_UKS }} --query 'id' -o tsv) \ | ||
--allow-vnet-access 1 | ||
# Remote VNET peer | ||
az network vnet peering create \ | ||
--name vnet-peer-uks-${{ env.TARGET }}-${{ env.PRODUCT }}-${{ vars.VERSION }} \ | ||
--vnet-name ${{ secrets.REMOTE_VNET_NAME_UKS }} \ | ||
--remote-vnet $(az network vnet show --name vnet-${{ env.PRODUCT }}-${{ env.TARGET }}-${{ vars.VERSION }} --query 'id' -o tsv) \ | ||
--allow-vnet-access 1 \ | ||
--subscription ${{ secrets.REMOTE_VNET_SUBSCRIPTION_UKS }} \ | ||
--resource-group ${{ secrets.REMOTE_VNET_RESOURCE_GROUP_UKS }} | ||
# Fetch peering state | ||
echo "Peering state: $(az network vnet peering show \ | ||
--vnet-name vnet-${{ env.PRODUCT }}-${{ env.TARGET }}-${{ vars.VERSION }} \ | ||
--name vnet-peer-uks-${{ env.TARGET }}-${{ env.PRODUCT }}-${{ vars.VERSION }} \ | ||
--query peeringState)" | ||
- name: Database 💾 | ||
uses: Azure/[email protected] | ||
with: | ||
|
@@ -562,7 +590,7 @@ jobs: | |
- name: Variables ✨ | ||
run: | | ||
echo "API_URL=$(az webapp show --name app-${{ env.PRODUCT }}-api-${{ env.TARGET }}-${{ vars.VERSION }} --query defaultHostName -o tsv)" >> $GITHUB_ENV | ||
echo "MYSQL_URL=$(az mysql flexible-server list --query [].fullyQualifiedDomainName -o tsv)" >> $GITHUB_ENV | ||
echo "MYSQL_URL=$(az network private-dns zone list --query ['?contains(name, `sql`)'].name -o tsv)" >> $GITHUB_ENV | ||
- name: Setting 🧱 | ||
uses: Azure/[email protected] | ||
|