Skip to content
Discussion options

You must be logged in to vote

Hi @razvanz,
I see the issue! It looks like a Region Mismatch between your login step and the image you are trying to pull.
The Problem:
In your workflow, you have a fallback to us-east-1 if the secret is missing:
aws-region: ${{ secrets.AWS_REGION != '' && secrets.AWS_REGION || 'us-east-1' }}
However, the error message shows you are trying to pull from eu-west-1:
...dkr.ecr.eu-west-1.amazonaws.com/...
ECR login is region-specific. If your workflow defaults to logging into us-east-1, your Docker client will not have the credentials to pull images from eu-west-1, resulting in the "no basic auth credentials" error.
The Fix:
Ensure your amazon-ecr-login step is targeting the same region as y…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by razvanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD other General topics and discussions that don't fit into other categories, but are related to GitHub Question Ask and answer questions about GitHub features and usage
2 participants