diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 9a83876a8..834b8dcb4 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -6,7 +6,7 @@ pool: 'Prod Private Agent Pool' variables: imageFradriveUpstream: devfra.azurecr.io/de.fraport.fradrive.build - imageRetagLatestBranch: 'refs/heads/master' + onMasterBranch: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')] jobs: - job: FrontendImage @@ -48,7 +48,7 @@ jobs: docker push ${{variables.imageFradriveUpstream}}/frontend:$(Build.BuildNumber) - task: Bash@3 displayName: Update latest frontend image - condition: eq(variables['Build.SourceBranch'], ${{variables.imageRetagLatestBranch}}) + condition: $(onMasterBranch) inputs: targetType: inline script: |