I'm referring to the official github guide to set up automated deploy to ECS https://docs.github.com/en/actions/deployment/deploying-to-your-cloud-provider/deploying-to-amazon-elastic-container-service
My deploy.yaml workflow looks identical to the one in the above link, only with the correct environment variables substituted
i've completed all the steps as required and have all the necessary infrastructure on AWS up and running. But when the workflow get's triggered, it always fails at pushing the docker image to ECR. After retrying for a couple of times, it exits with
EOF
Error: Process completed with exit code 1.
From the output i can see on the github actions, I believe the login to ecr step succeeded and also can confirm that it's pushing to the right ECR repository, but for some reason the push fails.
I've already pushed images to the repository locally and it works, so I don't think anything is wrong on the AWS side of things.
I realized my own mistake with this. In the environment file where i'm supposed to specify the repository-name i had instead specified the full repository ID meaning if the repository is named my-ecr-repo, i had instead accidentally written .dkr.ecr.us-east-1.amazonaws.com/my-ecr-repo setting the name to just my-ecr-repo solved the problem