-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (51 loc) · 2 KB
/
deploy_prod.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
name: Deploy to production
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
workflow_call:
jobs:
deploy-app:
name: Deploy app to production
uses: ./.github/workflows/aws_deploy.yml
with:
aws-region: "ap-southeast-1"
cicd-role: "arn:aws:iam::095733531422:role/isomer-infra-github-oidc-role-16ea937"
ecr-repository: "isomer-infra-prod-ecr"
ecs-cluster-name: "isomer-prod-ecs"
ecs-web-service-name: "isomer-prod-ecs-service"
ecs-container-name: "backend"
ecs-container-port: 8081
environment: "prod"
shortEnv: "prod"
task-definition-path: ".aws/deploy/backend-task-definition.prod.json"
codedeploy-application: "isomer-prod-ecs-app"
codedeploy-deployment-group: "isomer-prod-ecs-dg"
path-to-dockerfile: "Dockerfile"
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
EFS_FILE_SYSTEM_ID: ${{ secrets.PROD_EFS_FILE_SYSTEM_ID }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}
RDS_READER_ENDPOINT: ${{ secrets.PROD_RDS_READER_ENDPOINT }}
RDS_DATADOG_PASSWORD: ${{ secrets.PROD_RDS_DATADOG_PASSWORD }}
deploy-support:
name: Deploy support to staging
uses: ./.github/workflows/aws_deploy.yml
with:
aws-region: "ap-southeast-1"
cicd-role: "arn:aws:iam::095733531422:role/isomer-infra-github-oidc-role-16ea937"
ecr-repository: "isomer-infra-prod-ecr"
ecs-cluster-name: "isomer-prod-ecs"
ecs-web-service-name: "prod-support-ecs-service"
ecs-container-name: "support"
ecs-container-port: 8082
environment: "prod"
shortEnv: "prod"
task-definition-path: ".aws/deploy/support-task-definition.prod.json"
codedeploy-application: "prod-support-ecs-app"
codedeploy-deployment-group: "prod-support-ecs-dg"
path-to-dockerfile: "support/Dockerfile"
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
EFS_FILE_SYSTEM_ID: ${{ secrets.PROD_EFS_FILE_SYSTEM_ID }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}