Update webhook.controller.ts #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- production | |
name: π Deploy production | |
concurrency: deploy_production | |
permissions: | |
id-token: write # this is required for AWS https://github.com/aws-actions/configure-aws-credentials#usage | |
contents: read | |
actions: write | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
deploy: | |
name: π Deploy | |
runs-on: ubuntu-latest | |
environment: production | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/[email protected] | |
- name: Setup Node.js | |
id: setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Configure AWS Credentials (Authentication) | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ vars.AWS_REGION }} | |
role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | |
- name: 'π Deploy production' | |
env: | |
CDK_DEFAULT_REGION: ${{ vars.AWS_REGION }} | |
CDK_DEFAULT_ACCOUNT: ${{ secrets.AWS_ACCOUNT }} | |
ALLOWED_HOST: ${{ secrets.ALLOWED_HOST }} | |
run: cd apps/backend-infrastructure && pnpm cdk deploy --context applicationName="${{ secrets.APPLICATION_NAME }}" --context hostedZoneDomainName="${{ secrets.DOMAIN_NAME }}" |