Skip to content

Commit fca05d0

Browse files
committed
fix: changes from hotfix/singpass-growthbook-feature-flag
1 parent 8238d5f commit fca05d0

File tree

118 files changed

+2271
-33320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+2271
-33320
lines changed

.github/workflows/aws-deploy-scanner-legacy.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ jobs:
179179
path: '**/node_modules'
180180
key: ${{ runner.OS }}-node-modules-${{ hashFiles('**/package-lock.json') }}
181181
fail-on-cache-miss: true
182-
- run: npm ci --prefix serverless/virus-scanner
183182
- run: npm ci --prefix serverless/virus-scanner-guardduty
184183
- run: npm ci --prefix serverless/pdf-gen-sparticuz
185184
- name: Configure Datadog Test Visibility

.github/workflows/deploy-ecs-prod.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
aws-region: 'ap-southeast-1'
2626
ecr-repository: 'formsg'
2727
# ECS configuration
28-
ecs-cpu: 2048
28+
ecs-cpu: 1024
29+
formsg-app-reserved-cpu: 896
2930
ecs-memory: 4096
3031
ecs-cluster-name: 'formsg-prod-ecs'
3132
ecs-service-name: 'formsg-prod-ecs-service'

.github/workflows/deploy-ecs-stg-alt.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
ecr-repository: 'formsg'
2727
# ECS configuration
2828
ecs-cpu: 1024
29+
formsg-app-reserved-cpu: 896
2930
ecs-memory: 2048
3031
ecs-cluster-name: 'formsg-stg-alt-ecs'
3132
ecs-service-name: 'formsg-stg-alt-ecs-service'

.github/workflows/deploy-ecs-stg-alt2.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
ecr-repository: 'formsg'
2727
# ECS configuration
2828
ecs-cpu: 1024
29+
formsg-app-reserved-cpu: 896
2930
ecs-memory: 2048
3031
ecs-cluster-name: 'formsg-stg-alt2-ecs'
3132
ecs-service-name: 'formsg-stg-alt2-ecs-service'

.github/workflows/deploy-ecs-stg-alt3.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
ecr-repository: 'formsg'
2727
# ECS configuration
2828
ecs-cpu: 1024
29+
formsg-app-reserved-cpu: 896
2930
ecs-memory: 2048
3031
ecs-cluster-name: 'formsg-stg-alt3-ecs'
3132
ecs-service-name: 'formsg-stg-alt3-ecs-service'

.github/workflows/deploy-ecs-stg.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
ecr-repository: 'formsg'
2727
# ECS configuration
2828
ecs-cpu: 1024
29+
formsg-app-reserved-cpu: 896
2930
ecs-memory: 2048
3031
ecs-cluster-name: 'formsg-stg-ecs'
3132
ecs-service-name: 'formsg-stg-ecs-service'

.github/workflows/deploy-ecs-uat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
ecr-repository: 'formsg'
2727
# ECS configuration
2828
ecs-cpu: 1024
29+
formsg-app-reserved-cpu: 896
2930
ecs-memory: 2048
3031
ecs-cluster-name: 'formsg-uat-ecs'
3132
ecs-service-name: 'formsg-uat-ecs-service'

.github/workflows/deploy-ecs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ on:
7171
description: 'FormSG SDK mode'
7272
required: true
7373
type: string
74+
formsg-app-reserved-cpu:
75+
description: 'FormSG app reserved CPU units'
76+
required: true
77+
type: number
7478
dd-env:
7579
description: 'Datadog environment'
7680
required: true
@@ -184,6 +188,7 @@ jobs:
184188
run: |
185189
sed -i "s/<AWS_ACCOUNT_ID>/${{ secrets.aws-account-id }}/g" ${{ inputs.ecs-task-definition-path }}
186190
sed -i 's/<DD_ENV>/${{ inputs.dd-env }}/g' ${{ inputs.ecs-task-definition-path }}
191+
sed -i 's/<FORMSG_APP_RESERVED_CPU>/${{ inputs.formsg-app-reserved-cpu }}/g' ${{ inputs.ecs-task-definition-path }}
187192
sed -i 's/<CPU>/${{ inputs.ecs-cpu }}/g' ${{ inputs.ecs-task-definition-path }}
188193
sed -i 's/<MEMORY>/${{ inputs.ecs-memory }}/g' ${{ inputs.ecs-task-definition-path }}
189194
sed -i 's/<ENVIRONMENT_SITE_NAME>/${{ inputs.environment-site-name }}/g' ${{ inputs.ecs-task-definition-path }}

.github/workflows/deploy-virus-scanner-legacy-prod.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)