Skip to content

Update Dockerfile

Update Dockerfile #9

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@v1
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 }}"