tris
tris

Reputation: 1830

Azure App Service + Docker Autodeploy?

I have setup an Azure App Service to host a docker container. This is all running fine -- pointing at a private Docker repository/image, using the latest tag.

I would like to be able to publish a new Dockage image from my CI server to the Docker repository under the latest tag and somehow trigger the App Service to pick up that there is a change of the latest image.

It seems I can trigger the change by modifying an Application Setting on the App Service and saving it -- but this does not seem like the correct way to handle it.

Is there a best practise for this kind of deployment?

Upvotes: 1

Views: 292

Answers (2)

Dan
Dan

Reputation: 209

In the properties section of the web app you'll find a DEPLOYMENT TRIGGER URL.

This URL should point to the /deploy endpoint. Remove that part and use the /docker/hook endpoint. Your URL should look something like this: https://xxxx.scm.azurewebsites.net/docker/hook

If you POST to that URL with empty body it will trigger a deployment using the latest docker image.

Upvotes: 1

joBerg
joBerg

Reputation: 33

Currently they are working on a solution for this scenario but as stated in their FAQ about Web App on Linux either modifying the application settings or restarting the web app is the only way of triggering the change.

Upvotes: 0

Related Questions