ci(azure-pipelines): fix master branch check

This commit is contained in:
Sarah Vaupel 2025-01-20 14:08:04 +01:00
parent 351421e903
commit 47678dde2c

View File

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