ci(azure-pipelines): fix master branch check
This commit is contained in:
parent
351421e903
commit
47678dde2c
@ -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: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user