From fc916189893fe8f251d6e452ed5042e38b8caced Mon Sep 17 00:00:00 2001 From: fernandoataoldotcom Date: Sat, 14 Oct 2023 23:34:38 +0000 Subject: [PATCH] fix(gha-build): ecr login --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e3f82a9..a03263a 100644 --- a/action.yml +++ b/action.yml @@ -104,7 +104,8 @@ runs: echo "${{ inputs.github_token }}" | docker login ${{ inputs.registry }} -u ${{ github.actor }} --password-stdin ;; *".dkr.ecr."*) - echo "$(aws ecr get-login-password)" | docker login --username AWS --password-stdin ${{ inputs.registry }} + ECR_PASSWORD=$(aws ecr get-login-password) + echo $ECR_PASSWORD | docker login --username AWS --password-stdin ${{ inputs.registry }} ;; "docker.io") echo "${{ inputs.dockerhub_password }}" | docker login -u "${{ inputs.dockerhub_username }}" --password-stdin