File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ function Get-CIPPAuthentication {
20
20
}
21
21
} else {
22
22
Connect-AzAccount - Identity
23
-
23
+ $Vault = Get-AzKeyVault - ResourceGroupName $ ENV: Website_Resource_Group
24
24
$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
26
26
}
27
27
}
28
28
$ENV: SetFromProfile = $true
You can’t perform that action at this time.
0 commit comments