Build & Push Docker Image to AWS ECR using GitHub Actions

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

  1. Must have AWS Account (Free tier/AWS Educate)
  2. Must have prior knowledge of Docker and building docker image
  3. Basic knowledge of GitHub Actions, CI/CD, YAML format, and remote environment
  4. 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.

Website

Tags: Actions GitHub