Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayanmullick committed Apr 10, 2024
1 parent eb33de9 commit 0b5c72b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/InfraJobsAzPSImg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
. ./3TierApp/HelperFunctions.ps1
Connect-MySubscription ${{ vars.MULLICKTENANTID }} ${{ vars.FTESUBID }} ${{ vars.PSGHACTIONSCLIENTID }} ${{ secrets.PSGHACTIONSSECRET }}
./3TierApp/GovResource.ps1
$RG = Get-AzResourceGroup -Name GitHubAction24 -Verbose
$rgName = $RG.ResourceGroupName
Write-Output "rg_name=$rgName" >> $Env:GITHUB_OUTPUT
DeployVirtualMachines:
needs: GovernanceResourcesJob
runs-on: ubuntu-latest
Expand All @@ -29,10 +31,12 @@ jobs:
with:
sparse-checkout-cone-mode: false
sparse-checkout: 3TierApp/

- name: Deploy Virtual machines
shell: pwsh
run: |
. ./3TierApp/HelperFunctions.ps1
Connect-MySubscription ${{ vars.MULLICKTENANTID }} ${{ vars.FTESUBID }} ${{ vars.PSGHACTIONSCLIENTID }} ${{ secrets.PSGHACTIONSSECRET }}
./GHActionTest/GetRG.ps1
$rgName = "${{ needs.set_resource_group.outputs.rg_name }}"
Write-Host "Using Resource Group Name: $rgName"

0 comments on commit 0b5c72b

Please sign in to comment.