diff --git a/actions/docker-login/action.yml b/actions/docker-login/action.yml index e8dc051c5..e5a3d7ec2 100644 --- a/actions/docker-login/action.yml +++ b/actions/docker-login/action.yml @@ -7,11 +7,15 @@ inputs: docker-username: description: 'Docker username' required: false + docker-registry: + description: 'Docker registry' + default: 'ghcr.io' + required: false runs: using: composite steps: - run: | if [[ -n "${{ inputs.docker-token }}" ]] && [[ -n "${{ inputs.docker-username }}" ]]; then - echo "${{ inputs.docker-token }}" | docker login -u "${{ inputs.docker-username }}" --password-stdin + echo "${{ inputs.docker-token }}" | docker login -u "${{ inputs.docker-username }}" --password-stdin ${{ inputs.docker-registry }} fi shell: bash