From 9eb3e54887c37c0dac2d7bdeb43667cdb747b67a Mon Sep 17 00:00:00 2001 From: Jakub Scholz Date: Wed, 3 Aug 2022 22:34:04 +0200 Subject: [PATCH] Do not build suffixed version when not enabled Signed-off-by: Jakub Scholz --- .azure/release-pipeline.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure/release-pipeline.yaml b/.azure/release-pipeline.yaml index 7463b14..c85b0aa 100644 --- a/.azure/release-pipeline.yaml +++ b/.azure/release-pipeline.yaml @@ -64,7 +64,7 @@ stages: displayName: Publish Containers for ${{ parameters.releaseVersion }}-${{ parameters.releaseSuffix }} dependsOn: - release_artifacts - condition: and(succeeded(), startsWith(variables['build.sourceBranch'], 'refs/heads/release-')) + condition: and(succeeded(), startsWith(variables['build.sourceBranch'], 'refs/heads/release-'), eq('${{ parameters.useSuffix }}', 'true')) jobs: - template: 'templates/jobs/push_container.yaml' parameters: @@ -79,7 +79,7 @@ stages: dependsOn: - release_artifacts - containers_publish_with_suffix - condition: and(succeeded(), startsWith(variables['build.sourceBranch'], 'refs/heads/release-')) + condition: and(in(dependencies.containers_publish_with_suffix.result, 'Succeeded', 'SucceededWithIssues', 'Skipped'), startsWith(variables['build.sourceBranch'], 'refs/heads/release-')) jobs: - template: 'templates/jobs/push_container.yaml' parameters: