DEV Community

Discussion on: How to deploy a nextjs app to AWS EC2 with Github action

Collapse
 
alejomartinez8 profile image
Alejandro Martinez

I have an error on build step, name unknown: The repository with name 'demo-deploy' does not exist in the registry with id '***', I don't know what I missing.

Collapse
 
thangphan37 profile image
Phan Công Thắng • Edited

Hmm, Did this error come from github-action 's log or ECS's log ?

Collapse
 
alejomartinez8 profile image
Alejandro Martinez

From github-action's log, my repo is here github.com/alejomartinez8/deploy-demo maybe I don't understand the ECR configuration

This code is from my aws? uses: aws-actions/configure-aws-credentials@13d241b293754004c80624b5567555c4a39ffbe3 I saw in this repo github.com/aws-actions/amazon-ecr-... they just use uses: aws-actions/amazon-ecr-login@v1 there are any difference?

Thread Thread
 
thangphan37 profile image
Phan Công Thắng

Did you create a repo in ECR envinronment?

I think the matter isn't uses's config, it's only the version of amazon-ecr-login that you would like to set up.