Skip to content

Commit

Permalink
Merge pull request #1057 from JohnDuprey/processor
Browse files Browse the repository at this point in the history
Processor tweak
  • Loading branch information
JohnDuprey authored Aug 12, 2024
2 parents 5e68114 + d3ae533 commit 96e1a1a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/processor_cipplwwww-proc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Powershell project to Azure Function App - cipplwwww-proc

on:
push:
branches:
- processor
workflow_dispatch:

env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root

jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4

- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'cipplwwww-proc'
slot-name: 'Production'
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_74A86094449E448C811BC4518139D1BA }}
4 changes: 2 additions & 2 deletions Modules/CIPPCore/Public/Get-CIPPAuthentication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ function Get-CIPPAuthentication {
}
} else {
Connect-AzAccount -Identity

$Vault = Get-AzKeyVault -ResourceGroupName $ENV:Website_Resource_Group
$Variables | ForEach-Object {
Set-Item -Path ENV:$_ -Value (Get-AzKeyVaultSecret -VaultName $ENV:WEBSITE_DEPLOYMENT_ID -Name $_ -AsPlainText -ErrorAction Stop) -Force
Set-Item -Path ENV:$_ -Value (Get-AzKeyVaultSecret -VaultName $Vault.VaultName -Name $_ -AsPlainText -ErrorAction Stop) -Force
}
}
$ENV:SetFromProfile = $true
Expand Down

0 comments on commit 96e1a1a

Please sign in to comment.