From 47678dde2c23b0bdaccacdacea28328413eea995 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Mon, 20 Jan 2025 14:08:04 +0100 Subject: [PATCH] ci(azure-pipelines): fix master branch check --- azure-pipelines.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: |