Skip to content

Commit

Permalink
Added HEADER_VALUE to app settings (#9)
Browse files Browse the repository at this point in the history
* Update azure-pipelines.yml

* Update workflow.yml

* Update azure-pipelines.yml
  • Loading branch information
ninallam authored Nov 25, 2021
1 parent 50acb1d commit 67740f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
1 change: 1 addition & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
$setConnectionString = az webapp config appsettings set --name "${{ env.AZURE_WEBAPP_NAME }}" --resource-group "${{ env.AZURE_WEBAPP_NAME }}-rg" --settings CONNECTION_STRING="$connectionString"
$setAppSettings = az webapp config appsettings set --name "${{ env.AZURE_WEBAPP_NAME }}" --resource-group "${{ env.AZURE_WEBAPP_NAME }}-rg" --settings MSDEPLOY_RENAME_LOCKED_FILES=1
$setAppSettings = az webapp config appsettings set --name "${{ env.AZURE_WEBAPP_NAME }}" --resource-group "${{ env.AZURE_WEBAPP_NAME }}-rg" --settings SCM_DO_BUILD_DURING_DEPLOYMENT=true
$setAppSettings = az webapp config appsettings set --name "${{ env.AZURE_WEBAPP_NAME }}" --resource-group "${{ env.AZURE_WEBAPP_NAME }}-rg" --settings HEADER_VALUE="${{ secrets.MY_SECRET }}"
azPSVersion: "latest"

- name: 'Deploy to Azure WebApp'
Expand Down
20 changes: 6 additions & 14 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ stages:
"name": "SCM_DO_BUILD_DURING_DEPLOYMENT",
"value": true,
"slotSetting": false
}
},
{
"name": "HEADER_VALUE",
"value": "$(mySecret)",
"slotSetting": false
}
]
- task: DownloadPipelineArtifact@2
Expand All @@ -111,19 +116,6 @@ stages:
packageForLinux: '$(Pipeline.Workspace)/$(Build.BuildId).zip'
ScriptType: 'Inline Script'
InlineScript: 'npm install'
- task: DownloadPipelineArtifact@2
inputs:
artifact: drop
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'AzureRM'
azureSubscription: $(serviceConnection)
appType: 'webApp'
WebAppName: $(webAppName)
packageForLinux: '$(Pipeline.Workspace)/$(Build.BuildId).zip'
enableCustomDeployment: true
DeploymentType: 'zipDeploy'
TakeAppOfflineFlag: false

- stage: LoadTest
displayName: Load Test
Expand Down

0 comments on commit 67740f9

Please sign in to comment.