From d842ee0f15d2ce85db6c7d56f3681f61651b088e Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Sat, 28 Sep 2024 10:25:50 +0200 Subject: [PATCH] chore: allow setting docker registry in login action Default to the GitHub package registry --- actions/docker-login/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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