Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
James Flynn 2021-03-01 20:00:37 +00:00
parent 1b00148081
commit 32de58ba0c

View file

@ -49,11 +49,11 @@ jobs:
- task: AzureWebApp@1 - task: AzureWebApp@1
displayName: Deploy spring-petclinic to Azure Web Apps service displayName: Deploy spring-petclinic to Azure Web Apps service
# Only deploy from main branch (for release purposes)
# condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs: inputs:
azureSubscription: 'azure-svc-connection' azureSubscription: 'azure-svc-connection'
appType: webAppLinux appType: webAppLinux
appName: 'james-pet-clinic' appName: 'james-pet-clinic'
package: '$(System.DefaultWorkingDirectory)/**/*.jar' package: '$(System.DefaultWorkingDirectory)/**/*.jar'
# Only deploy web app from main branch (for release purposes)
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))