tomkerkhove / containo

Containo is a fictious company that is building a product that provides a catalog of products to buy that 3rd parties can consume. The company is running their platform on Docker containers written in .NET Core. All of their APIs are being exposed via Kong as an API gateway.
MIT License
39 stars 7 forks source link

Streamline Docker image tagging #34

Open tomkerkhove opened 6 years ago

tomkerkhove commented 6 years ago

Streamline Docker image tagging so that you can push "full" images and "preview" images.

The build should:

Overview

tomkerkhove commented 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'], '')