Skip to content

Commit 96e1a1a

Browse files
authored
Merge pull request #1057 from JohnDuprey/processor
Processor tweak
2 parents 5e68114 + d3ae533 commit 96e1a1a

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
2+
# More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+
name: Build and deploy Powershell project to Azure Function App - cipplwwww-proc
5+
6+
on:
7+
push:
8+
branches:
9+
- processor
10+
workflow_dispatch:
11+
12+
env:
13+
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
14+
15+
jobs:
16+
build-and-deploy:
17+
runs-on: windows-latest
18+
steps:
19+
- name: 'Checkout GitHub Action'
20+
uses: actions/checkout@v4
21+
22+
- name: 'Run Azure Functions Action'
23+
uses: Azure/functions-action@v1
24+
id: fa
25+
with:
26+
app-name: 'cipplwwww-proc'
27+
slot-name: 'Production'
28+
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
29+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_74A86094449E448C811BC4518139D1BA }}

Modules/CIPPCore/Public/Get-CIPPAuthentication.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ function Get-CIPPAuthentication {
2020
}
2121
} else {
2222
Connect-AzAccount -Identity
23-
23+
$Vault = Get-AzKeyVault -ResourceGroupName $ENV:Website_Resource_Group
2424
$Variables | ForEach-Object {
25-
Set-Item -Path ENV:$_ -Value (Get-AzKeyVaultSecret -VaultName $ENV:WEBSITE_DEPLOYMENT_ID -Name $_ -AsPlainText -ErrorAction Stop) -Force
25+
Set-Item -Path ENV:$_ -Value (Get-AzKeyVaultSecret -VaultName $Vault.VaultName -Name $_ -AsPlainText -ErrorAction Stop) -Force
2626
}
2727
}
2828
$ENV:SetFromProfile = $true

0 commit comments

Comments
 (0)