Skip to content

Commit 1efa6a6

Browse files
Created GitHub Actions
1 parent 5672eab commit 1efa6a6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎.github/workflows/deployment.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,16 @@ jobs:
3939
- name: Push Docker Image to AWS ECR
4040
run: |
4141
docker push 210447604094.dkr.ecr.ap-south-1.amazonaws.com/login:${{github.run_number}}
42+
43+
- name: Update Docker Image Tag in Kubernetes Manifest
44+
run: |
45+
sed -i 's/Build_Tag/${buildNumber}/g' MavenWebApplication.yaml
46+
47+
- name: Configure Kubectl
48+
run: |
49+
aws eks update-kubeconfig --name Amazon_Production_EKS_Cluster --region ap-south-1
50+
51+
- name: Deploy to Kubernetes Cluster
52+
run: |
53+
kubectl delete deployment webpage-deployment -n production || true
54+
kubectl apply -f MavenWebApplication.yaml

0 commit comments

Comments
 (0)