DOP-4451 move spin up additional tasks into for loop #104
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: | |
# paths: [api/**', 'cdk-infra/lib/constructs/api/**', 'cdk-infra/utils/**'] | |
branches: | |
- "main" | |
- "integration" | |
- "DOP-4451" | |
concurrency: | |
group: environment-stg-enhanced-webhooks-${{ github.ref }} | |
cancel-in-progress: true | |
name: Deploy Staging ECS Enhanced Webhooks | |
jobs: | |
deploy-stg: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18.x' | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-2 | |
- name: Deploy Enhanced Infrastructure | |
run: | | |
npm ci | |
cd cdk-infra/ | |
npm ci | |
npm run deploy:feature:stack -- -c env=dotcomstg -c customFeatureName=enhancedApp-dotcomstg auto-builder-stack-enhancedApp-dotcomstg-webhooks | |
npm run deploy:feature:stack -- -c env=stg -c customFeatureName=enhancedApp-stg auto-builder-stack-enhancedApp-stg-webhooks |