I have an AppService which uses Azure Container Registry.
The docker images are built by the pipeline and pushed with a 'Docker push' task in Azure Release.
I am using semantic versioning, I put the version into the BuildNumber and to the image name.
I can see my images being available in the DeploymentCenter, along with all the tags that have been pushed so far.
However, whenever I create a Release in AZ DevOps, it does not automatically get deployed to the AppService. I have to go to the DeploymentCenter, pick the newest tag and then redeploy again (restarting the app didn't seem to work, but am no 100% sure).
In any case, I would like the AppService to be updated and run the latest image automatically when the release succeeds in DevOps.
Is that possible with the Docker push
task to ACR?
Also, I wonder - I have the 'Include latest tag' tickbox checked, but the 'latest' tag is not available in the tag dropdown in Deployment Center. Why is that?
Is that possible with the Docker push task to ACR?
Of course, yes. But the thing you need to know is the continuous deployment of the App Service only triggers for the one tag can it can't change. Generally, we use the certain tag latest
. So you need to create the image with the tag latest
all the time, don't use the default tag $(Build.BuildId)
in DevOps.
I have the 'Include latest tag' tickbox checked, but the 'latest' tag is not available in the tag dropdown in Deployment Center. Why is that?
I'm not familiar with DevOps, but I think the include latest tag
means the latest Build.BuildId
, not one certain tag, so it will change each time when you create the image and push it. And it won't work for App Service Continuous Deployment.