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 Initiation
- Developer creates tag and pushes code to Github repository
- Github Actions is automatically triggered when developer creates new tag
-
Build
- Code is built into Docker image
-
Push Image
- Image is pushed to Amazon ECR (Elastic Container Registry) or DockerHub
-
Update
- Update ECS Task Definition for both Frontend and Backend
-
Deployment
- Frontend service:
- Update new revision of frontend service
- Backend service:
- Update new code deploy of backend service
Content
- Clone template Github
- Create new project and push code on Github
- Create access key and secret key
- Check result