'Ways to add Image tag to a container image

I'm working with Azure pipelines to build and push container images.

The pipeline is triggered when there is a commit in the branch, so then the pipeline starts the process...

as the process is automatic, I would like to know what are the ways to build the image by assigning a specific tag to the image.

Thanks in advance guys!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source