Support logging to multiple registries with a single execution of the Action #72
Closed
Description
Currently, 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 }}'
Metadata
Assignees
Labels
No labels