Open tomkerkhove opened 6 years ago
Should be possible similar to this:
queue:
name: Hosted VS2017
condition: succeeded()
#Your build definition references the ‘Tag.Name’ variable, which you’ve selected to be settable at queue time. Create or edit the build definition for this YAML file, define the variable on the Variables tab, and then select the option to make it settable at queue time. See https://go.microsoft.com/fwlink/?linkid=865971
steps:
- powershell: |
# Write your powershell commands here.
Write-Host "Empty Variable"
displayName: PowerShell Script
condition: eq(variables['Tag.Name'], '')
- powershell: |
# Write your powershell commands here.
Write-Host "$(Tag.Name)"
# Use the environment variables input below to pass secret variables to this script.
displayName: PowerShell Script (Prerelease)
condition: ne(variables['Tag.Name'], '')
Streamline Docker image tagging so that you can push "full" images and "preview" images.
The build should:
latest
& version when no tag was specifieddev
tag and the tag that was specified when queueing the buildOverview