Containerize and Run an e-commerce based application in AWS EKS cluster with all best practices (Part - 6)
Source: Dev.to
Set up CI/CD pipeline using GitHub Actions and GitOps (ArgoCD)
Continuous Integration with GitHub Actions
- Create a workflow file
ci.yamlunder the.github/workflows/directory. - The file can be viewed in the repository:
# Create a new branch for the CI changes
git checkout -b cicheck
- Modify the
main.gofile in theproduct-catalogdirectory.


Continuous Deployment with GitOps (ArgoCD)
Why ArgoCD?
ArgoCD is often preferred over tools such as Ansible, shell scripts, or custom Python/Helm scripts because it provides:
- Constant monitoring of the target Kubernetes cluster.
- Automatic deployments whenever the source manifests change.
- State reconciliation: if a change is made directly in the cluster, ArgoCD detects the drift and restores the desired state from the Git repository, treating Git as the single source of truth.

