v1.0.3 #25
Workflow file for this run
This file contains hidden or 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
| name: Deploy to Prod | |
| on: | |
| release: | |
| types: [published, deleted] | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| concurrency: | |
| group: production | |
| cancel-in-progress: false | |
| jobs: | |
| deploy-cdk: | |
| runs-on: ubuntu-latest | |
| environment: production | |
| env: | |
| STAGE: prod | |
| defaults: | |
| run: | |
| working-directory: ./deploy | |
| steps: | |
| - uses: actions/[email protected] | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: ${{ vars.AWS_REGION }} | |
| role-to-assume: ${{ vars.DEPLOY_ROLE_ARN }} | |
| - uses: actions/[email protected] | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: ./deploy/package-lock.json | |
| - run: npm install -g aws-cdk | |
| - run: npm ci | |
| - name: Set vars to env | |
| env: | |
| VARS_JSON: ${{ toJSON(vars) }} | |
| run: | | |
| echo "$VARS_JSON" | jq -r 'keys[] as $k | "\($k)=\(.[$k])"' >> $GITHUB_ENV | |
| - run: cdk deploy --all --require-approval never | |
| env: | |
| STAGE: prod |