ci(azure-pipelines): reintroduce image-build conditions

This commit is contained in:
Sarah Vaupel 2025-01-21 17:28:53 +01:00
parent 5d54275446
commit 03d85be290

View File

@ -14,7 +14,7 @@ parameters:
jobs:
- job: ImageBuild_${{parameters.service.name}}
displayName: Build ${{parameters.service.name}} image
# condition: or(eq(variables.onMasterBranch, true), eq(variables.onUpdateBranch, true))
condition: or(eq(variables.onMasterBranch, true), eq(variables.onUpdateBranch, true))
container:
image: devfra.azurecr.io/de.fraport.build/tools:1.1.0
endpoint: devfra
@ -52,7 +52,7 @@ jobs:
docker push $(imageUpstream)/${{parameters.service.name}}:$(Build.BuildNumber)
- task: Bash@3
displayName: Update latest ${{parameters.service.name}} image
# condition: eq(variables.onMasterBranch, true)
condition: eq(variables.onMasterBranch, true)
inputs:
targetType: inline
script: |