Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
fix(gha-build): ecr login
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandoataoldotcom authored Oct 14, 2023
1 parent eca32ed commit fc91618
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc91618

Please sign in to comment.