-
Notifications
You must be signed in to change notification settings - Fork 60
77 lines (70 loc) · 2.33 KB
/
ci.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
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
74
75
76
77
name: CI and Deploy
on:
push:
branches:
- main
jobs:
lint:
uses: ./.github/workflows/lint.yml
with:
workflow_call: true
test:
uses: ./.github/workflows/test.yml
with:
workflow_call: true
deploy-gateway:
needs: [lint, test]
uses: ./.github/workflows/deploy-common.yml
concurrency:
group: production-gateway
cancel-in-progress: false
with:
working-directory: apps/infra
stack-name: gateway-production
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ARN_OF_IAM_ROLE_TO_ASSUME: ${{ secrets.ARN_OF_IAM_ROLE_TO_ASSUME }}
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
deploy-web:
needs: [lint, test]
uses: ./.github/workflows/deploy-common.yml
concurrency:
group: production-web
cancel-in-progress: false
with:
working-directory: apps/infra
stack-name: web-production
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ARN_OF_IAM_ROLE_TO_ASSUME: ${{ secrets.ARN_OF_IAM_ROLE_TO_ASSUME }}
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
deploy-websockets:
needs: [lint, test]
uses: ./.github/workflows/deploy-common.yml
concurrency:
group: production-websockets
cancel-in-progress: false
with:
working-directory: apps/infra
stack-name: websockets-production
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ARN_OF_IAM_ROLE_TO_ASSUME: ${{ secrets.ARN_OF_IAM_ROLE_TO_ASSUME }}
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}
deploy-workers:
needs: [lint, test]
uses: ./.github/workflows/deploy-common.yml
concurrency:
group: production-workers
cancel-in-progress: false
with:
working-directory: apps/infra
stack-name: workers-production
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ARN_OF_IAM_ROLE_TO_ASSUME: ${{ secrets.ARN_OF_IAM_ROLE_TO_ASSUME }}
PULUMI_CONFIG_PASSPHRASE: ${{ secrets.PULUMI_CONFIG_PASSPHRASE }}