-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.yaml
More file actions
73 lines (53 loc) · 1.49 KB
/
main.yaml
File metadata and controls
73 lines (53 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<<<<<<< HEAD
name: EKS Deployment
on:
push:
branches:
- main
jobs:
deploy:
runs-on: linux-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up kubectl
uses: azure/k8s-set-context@v2
with:
kubeconfig: ${{ secrets.KUBE_CONFIG_DATA }}
- name: Build Docker Image
run: |
docker build -t bsreenu1999/crud .
- name: Push Docker Image to ECR
run: |
aws ecr get-login-password --region us-east-1 | docker login --username bsreenu1999 --password-stdin devops
docker push devops/crud
- name: Deploy to EKS
run: |
kubectl apply -f crud-k8s.yaml
=======
name: EKS Deployment
on:
push:
branches:
- main
jobs:
deploy:
runs-on: linux-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up kubectl
uses: azure/k8s-set-context@v2
with:
kubeconfig: ${{ secrets.KUBE_CONFIG_DATA }}
- name: Build Docker Image
run: |
docker build -t bsreenu1999/crud .
- name: Push Docker Image to ECR
run: |
aws ecr get-login-password --region us-east-1 | docker login --username bsreenu1999 --password-stdin devops
docker push devops/crud
- name: Deploy to EKS
run: |
kubectl apply -f crud-k8s.yaml
>>>>>>> 31ea338a11e7a18514bfda3424a2c195f58c2d0c