Skip to content

Deploy to ECS (Production) - main #14

Deploy to ECS (Production) - main

Deploy to ECS (Production) - main #14

name: Deploy Production
run-name: Deploy to ECS (Production) - ${{ github.ref_name }}
on:
push:
branches: ["main"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy-infra:
uses: ./.github/workflows/infra-provision.yml
with:
application: js
environment_name: production
secrets: inherit
deploy-app:
needs: deploy-infra
uses: ./.github/workflows/ecs-deploy.yml
with:
application: js
environment_name: production
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_PROD }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_PROD }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}