From e67091cb47d6fafdce9749b220b2a8618f9c516a Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Wed, 22 Jan 2025 23:09:25 +0100 Subject: [PATCH] ci(azure-pipelines): introduce forcePushLatest variable --- .azure-pipelines/templates/service.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/templates/service.yaml b/.azure-pipelines/templates/service.yaml index b8ad7bc3d..fae755a5c 100644 --- a/.azure-pipelines/templates/service.yaml +++ b/.azure-pipelines/templates/service.yaml @@ -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: |