close
The Wayback Machine - https://web.archive.org/web/20200918102645/https://github.com/Azure/docker-login/pull/13
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple registries #13

Merged
merged 1 commit into from May 7, 2020
Merged

Conversation

@squarebracket
Copy link
Contributor

squarebracket commented Apr 28, 2020

It's unclear to me on which branch you want pull requests. Let me know if I should be targeting master.


This PR adds support for multiple registries. It does so by reading in the config.json pointed to by DOCKER_CONFIG, if it exists. If it does, it JSON.parses it and adds a new entry to auths. If it doesn't, or if there's any problem with reading in and setting the new key, it simply generates a new config.json and overwrites the old one.

This differs from the current behavior, which writes a new file and simply changes the env var. If you think I should explicitly state this in the README, I'd be happy to add it.

@msftclas
Copy link

msftclas commented Apr 28, 2020

CLA assistant check
All CLA requirements met.

@ds-ms
ds-ms approved these changes May 7, 2020
@ds-ms ds-ms merged commit c5d6b09 into Azure:releases/v1 May 7, 2020
1 check passed
1 check passed
license/cla All CLA requirements met.
Details
@ds-ms
Copy link
Contributor

ds-ms commented May 7, 2020

Could you cherry-pick these changes to master

@ds-ms ds-ms mentioned this pull request May 7, 2020
squarebracket added a commit to squarebracket/docker-login that referenced this pull request May 7, 2020
@squarebracket
Copy link
Contributor Author

squarebracket commented May 7, 2020

Certainly!

ds-ms pushed a commit that referenced this pull request May 7, 2020
@N-Usha N-Usha added this to To be Triaged in GitHub Actions for Azure May 7, 2020
@ds-ms ds-ms moved this from To be Triaged to Done/Closed in GitHub Actions for Azure May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.