CI/CD Deployment with Github Actions

Overview

In this section, we will learn how to implement automated application deployment using Github Actions in conjunction with AWS services such as ECR, ECS, and CodeDeploy.

Pipeline Process

Pipeline Process

  1. Pipeline Initiation

    • Developer creates tag and pushes code to Github repository
    • Github Actions is automatically triggered when developer creates new tag
  2. Build

    • Code is built into Docker image
  3. Push Image

    • Image is pushed to Amazon ECR (Elastic Container Registry) or DockerHub
  4. Update

    • Update ECS Task Definition for both Frontend and Backend
  5. Deployment

    • Frontend service:
      • Update new revision of frontend service
    • Backend service:
      • Update new code deploy of backend service

Content

  1. Clone template Github
  2. Create new project and push code on Github
  3. Create access key and secret key
  4. Check result