Skip to content

chore: fix parallelism of ci jobs #6

chore: fix parallelism of ci jobs

chore: fix parallelism of ci jobs #6

Workflow file for this run

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 }}