From 03d85be290e13f5726011c5dbe665f82a3b0e44e Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Tue, 21 Jan 2025 17:28:53 +0100 Subject: [PATCH] ci(azure-pipelines): reintroduce image-build conditions --- .azure-pipelines/templates/build-image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/templates/build-image.yaml b/.azure-pipelines/templates/build-image.yaml index afbde4622..c098c92b7 100644 --- a/.azure-pipelines/templates/build-image.yaml +++ b/.azure-pipelines/templates/build-image.yaml @@ -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: |