Skip to content

Commit

Permalink
Fix docker release
Browse files Browse the repository at this point in the history
  • Loading branch information
rnwood committed May 4, 2024
1 parent e486261 commit 6c71aed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ resources:
variables:
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
iscibuild: ${{ true }}
isreleasebuild: ${{ false }}

${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/') }}:
iscibuild: ${{ false }}
isreleasebuild: ${{ true }}
tag: $[ replace(variables['Build.SourceBranch'], 'refs/tags/', '') ]

Expand Down Expand Up @@ -420,7 +422,7 @@ stages:
script: |
if ($(isreleasebuild)) {
$version = [version] "$(tag)"
$dockertags = 'latest v($version.Major) v($version.Major).$($version.Minor)'
$dockertags = 'latest v$($version.Major) v$($version.Major).$($version.Minor)'
} else {
$dockertags = 'prerelease'
}
Expand Down Expand Up @@ -462,7 +464,7 @@ stages:
script: |
if ($(isreleasebuild)) {
$version = [version] "$(tag)"
$dockertags = 'latest v($version.Major) v($version.Major).$($version.Minor)'
$dockertags = 'latest v$($version.Major) v$($version.Major).$($version.Minor)'
} else {
$dockertags = 'prerelease'
}
Expand Down

0 comments on commit 6c71aed

Please sign in to comment.