ci(azure-pipelines): fix master-branch check for updating latest

This commit is contained in:
Sarah Vaupel 2025-02-12 15:02:15 +01:00
parent a04732b5fb
commit ea92e17949

View File

@ -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: |