ci(azure-pipelines): introduce forcePushLatest variable

This commit is contained in:
Sarah Vaupel 2025-01-22 23:09:25 +01:00
parent acb5dbfb28
commit e67091cb47

View File

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