...
Now create a file with the name .env
in the repo root folder:
Code Block |
---|
my-docker-repo._azurecr._io_USERNAME=username my-docker-repo._azurecr._io_PASSWORD=password |
Please note that you need to replace dots (.) with underscores (_) in the hostname of the respository in the .env file
This file will contain credentials for your container registry. Note that this file is not saved in .git to prevent credentials being stored in version control.
You also need to login to docker repo if you haven’t done it already:
docker login my-docker-repo.azurecr.io -u username -p password
Now your module is ready to be built.
...