Skip to content

Commit

Permalink
Do not build suffixed version when not enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Scholz <[email protected]>
  • Loading branch information
scholzj committed Aug 3, 2022
1 parent d5d7e42 commit 9eb3e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .azure/release-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 9eb3e54

Please sign in to comment.