Add basic readme to run the docker publish with or without login (#4917)

add the tag to the docker image
publish the docker image
clean the docker image
This commit is contained in:
Maurizio Vitale
2019-07-10 18:07:22 +01:00
committed by GitHub
parent a6e18e6c1b
commit 05baabb8f5
2 changed files with 37 additions and 4 deletions

View File

@@ -31,3 +31,16 @@ npm install
adf-audit
```
### Docker publish
Move in the folder where you have your Dockerfile and run the command:
```bash
adf-cli docker-publish --dockerRepo "${docker_repository}" --dockerTags "${TAGS}" --pathProject "$(pwd)"
```
If you want to specify a different docker registry you can run
```bash
--loginCheck --loginUsername "username" --loginPassword "password" --loginRepo "quay.io"--dockerRepo "${docker_repository}" --dockerTags "${TAGS}" --pathProject "$(pwd)"
```