In this blog post, I’ll explain to you how to build & push docker images to AWS ECR (Elastic Container Registry) using GitHub Actions.
Pre-Requisites
- Must have AWS Account (Free tier/AWS Educate)
- Must have prior knowledge of Docker and building docker image
- Basic knowledge of GitHub Actions, CI/CD, YAML format, and remote environment
- Must have prior knowledge of GitHub and commands of Git
Getting Started
First of all, build the application on your local environment and then create a repository in GitHub or you may also use your old repository.
Make Docker File
Now, you’ve to make a docker file for your application, so that you can use it to build the docker image.