Xiaodi Yan
1 min readJun 3, 2020

--

Hi, Brian, my approach is that we only have one docker image for all environments. When we build the image, we don't care about if it is for staging or production because there is only one image. In the release pipeline, we inject some settings for different environments. Also, I use $(Build.BuildId) as the tag of the image for both build pipeline and release pipeline. So the release pipeline can find the correct image in the container registry. Of course, you can use any version schema you like for the image tag, just make sure you use the same format in your release pipeline. Thanks.

--

--

Xiaodi Yan
Xiaodi Yan

Written by Xiaodi Yan

Microsoft MVP (.NET & AI) / MCT / .NET, Azure, AI Developer / Learner

No responses yet