Azure-devops-docs: Add example on how to use this to deploy a docker-compose setup to Web App for container

Created on 15 Nov 2018  Â·  12Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

as title


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 devopprod doc-bug doc-enhancement

All 12 comments

An example would be awesome.

@stevo-knievo

here's how I do it, directly in Azure Web App for now:

image

it was simply easier than finding how to do it manually in Azure Pipelines... but I'd like to do it from my CI and not through the automated web hook on the Azure side.

Thanks @phil-lgr! Same here. I would like to use Azure Pipelines as well. I'm wondering how to replace the image tag in the docker-compose.yml file from the current build $(Build.BuildId) and keep the other image tags.

I ended up doing it from a npm script

something like:

"docker:tag:client:releasev": "cross-var docker tag $npm_package_config_docker_registry/$npm_package_name$npm_package_config_docker_client_image_name:$npm_package_version $npm_package_config_docker_registry/$npm_package_name$npm_package_config_docker_client_image_release:$npm_package_version",

where the $npm_packge_* are npm env variable

so I tag my images latest and also with the package.json version, and then I push both to the registry

We are working on adding this feature. I will close the issue once the feature is live. Thanks again for the feedback.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Any update on when this feature will be available. I’d like to use it from pipelines and do manually in azure

Still waiting for this feature to be fleshed out. Actually using DevOps/Azure Pipelines is terrible due to this documentation being terrible.

This feature has gone live now
image
Please let us know if you have any feedback.

Is there an example document somewhere that explains how to use this feature from Azure Devops?
Your screen shot above doesn't provide any such details.

Is there an example document somewhere that explains how to use this feature from Azure Devops?
Your screen shot above doesn't provide any such details.

@ceemafour It is available in a 'Azure Web App for Containers' task.

Was this page helpful?
0 / 5 - 0 ratings