Skip to content

feat(monitoring): add scheduler functionality #250

feat(monitoring): add scheduler functionality

feat(monitoring): add scheduler functionality #250

name: Deploy to staging
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- staging
- feat/ecs
jobs:
deploy-app:
name: Deploy app 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-staging-ecr"
ecs-cluster-name: "isomer-stg-ecs"
ecs-web-service-name: "isomer-stg-ecs-service"
ecs-container-name: "backend"
ecs-container-port: 8081
environment: "staging"
shortEnv: "stg"
task-definition-path: ".aws/deploy/backend-task-definition.staging.json"
codedeploy-application: "isomer-stg-ecs-app"
codedeploy-deployment-group: "isomer-stg-ecs-dg"
path-to-dockerfile: "Dockerfile"
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
EFS_FILE_SYSTEM_ID: ${{ secrets.STAGING_EFS_FILE_SYSTEM_ID }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}
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-staging-ecr"
ecs-cluster-name: "isomer-stg-ecs"
ecs-web-service-name: "stg-support-ecs-service"
ecs-container-name: "support"
ecs-container-port: 8082
environment: "staging"
shortEnv: "stg"
task-definition-path: ".aws/deploy/support-task-definition.staging.json"
codedeploy-application: "stg-support-ecs-app"
codedeploy-deployment-group: "stg-support-ecs-dg"
path-to-dockerfile: "support/Dockerfile"
secrets:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
EFS_FILE_SYSTEM_ID: ${{ secrets.STAGING_EFS_FILE_SYSTEM_ID }}
DD_API_KEY: ${{ secrets.DD_API_KEY }}