-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (43 loc) · 1.21 KB
/
deploy-main.yml
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
name: Deploy app on stage and prod
on:
push:
branches:
- 'main'
jobs:
build-and-push-image-stage:
uses: ./.github/workflows/ecr-build-push.yml
with:
ecr_repo: ${{ github.event.repository.name }}
environment: stage
secrets: inherit
deploy-eks-stage:
needs: [build-and-push-image-stage]
uses: ./.github/workflows/eks-deploy.yml
with:
environment: stage
service_name: ${{ github.event.repository.name }}
namespace: ${{ github.event.repository.name }}
clusters: >-
[
{"region":"us-east-1", "name":"crypto-stage-us-east-1"}
]
secrets: inherit
build-and-push-image-prod:
uses: ./.github/workflows/ecr-build-push.yml
with:
ecr_repo: ${{ github.event.repository.name }}
environment: prod
secrets: inherit
deploy-eks-prod:
needs: [build-and-push-image-prod]
uses: ./.github/workflows/eks-deploy.yml
with:
environment: prod
service_name: ${{ github.event.repository.name }}
namespace: ${{ github.event.repository.name }}
values_filename: values-prod.yaml
clusters: >-
[
{"region":"us-east-1", "name":"crypto-prod-us-east-1"}
]
secrets: inherit