Support logging to multiple registries with a single execution of the Action
See original GitHub issueCurrently, I need to login to three registries, which makes it very verbose to use this Action:
- name: Login to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: gha
password: ${{ github.token }}
- name: Login to docker.io
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GCR
uses: docker/login-action@v1
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}
It would be nice if providing a list of targets was supported. For instance:
- name: Login to container registries
uses: docker/login-action@v2
with:
targets:
- 'ghcr.io|gha|${{ github.token }}'
- 'docker.io|${{ secrets.DOCKER_USERNAME }}|${{ secrets.DOCKER_PASSWORD }}'
- 'gcr.io|_json_key|${{ secrets.GCR_JSON_KEY }}'
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Is there any way to configure multiple registries in a single ...
You can have multiple registries for scoped packages in your .npmrc file. For example: @polymer:registry=<url register A> registry=http://localhost:4873/.
Read more >Python Logging Guide - Best Practices and Hands-on Examples
The rest of this guide is focused on how to log in Python using the built-in support for logging. It introduces various concepts...
Read more >Apache Log4j "Log4Shell" Remote Code Execution 0-Day ...
The challenge with this vulnerability is widespread use of this particular logging utility in many enterprise and cloud applications. JDNI lookups support ......
Read more >Windows registry information for advanced users
Describes the Windows registry and provides information about how to edit it.
Read more >GitLab Container Registry administration
Ensure you choose a port different than the one that Registry listens to ( 5000 by default), ... Each time reconfigure is executed,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tpolekhin Thanks for your feedback, that sounds like legitimate to me so yes I think we could improve the current behavior. About design I will think about it. I also saw the composite actions ADR recently that could be beneficial for this use case.
I’m closing this issue since the proposed feature is not to be implemented here.
FTR, I’m using a single plain JavaScript file as an alternative:
Ref: https://github.com/hdl/containers/tree/main/utils/registry-login