Skip to content

chore: do not attempt deploys if linter or test fail in main branch #1

chore: do not attempt deploys if linter or test fail in main branch

chore: do not attempt deploys if linter or test fail in main branch #1

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
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
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 }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
deploy-websockets:
needs: [lint, test]
uses: ./.github/workflows/deploy-common.yml
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
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 }}