From ea92e17949a3837f28a73963f730c06259d3e77c Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Wed, 12 Feb 2025 15:02:15 +0100 Subject: [PATCH] ci(azure-pipelines): fix master-branch check for updating latest --- .azure-pipelines/templates/jobs/setup_image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/templates/jobs/setup_image.yaml b/.azure-pipelines/templates/jobs/setup_image.yaml index 2028e2cc2..8eceb73ef 100644 --- a/.azure-pipelines/templates/jobs/setup_image.yaml +++ b/.azure-pipelines/templates/jobs/setup_image.yaml @@ -47,7 +47,7 @@ jobs: docker push $(buildImageUpstream)/${{parameters.imageName}}:$(Build.BuildNumber) - task: Bash@3 displayName: Update latest ${{parameters.imageName}} image - condition: or(eq(variables.forcePushLatest, true), eq(variables.onMasterBranch, true)) + condition: or(eq(variables.forcePushLatest, true), eq(variables['Build.SourceBranch'], 'refs/heads/master')) inputs: targetType: inline script: |