From 32de58ba0c527e08633807e71b64d20df8e7c7bc Mon Sep 17 00:00:00 2001 From: James Flynn Date: Mon, 1 Mar 2021 20:00:37 +0000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 25450d379..ceaaaadd5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -49,11 +49,11 @@ jobs: - task: AzureWebApp@1 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: azureSubscription: 'azure-svc-connection' appType: webAppLinux appName: 'james-pet-clinic' package: '$(System.DefaultWorkingDirectory)/**/*.jar' + # Only deploy web app from main branch (for release purposes) + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main')) \ No newline at end of file