CI/CD Deployment with Gitlab

Overview

In this section, we will learn how to implement automated application deployment using Gitlab CI/CD pipeline 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 Gitlab repository
    • Gitlab CI/CD 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

After completing this module, you will be able to:

  • Set up and manage CI/CD pipeline with Gitlab
  • Automate application deployment process
  • Handle issues that arise during deployment
  • Apply DevOps best practices