Skip to content

Commit

Permalink
add deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
sinofseven committed Apr 22, 2024
1 parent 996bfaa commit 9425bbd
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,66 @@ jobs:
name: cdk.out
path: cdk.out/

cdk-deploy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
aws_region:
- af-south-1
- ap-east-1
- ap-northeast-1
- ap-northeast-2
- ap-northeast-3
- ap-south-1
- ap-south-2
- ap-southeast-1
- ap-southeast-2
- ap-southeast-3
- ap-southeast-4
- ca-central-1
- ca-west-1
- eu-central-1
- eu-central-2
- eu-north-1
- eu-south-1
- eu-south-2
- eu-west-1
- eu-west-2
- eu-west-3
- il-central-1
- me-central-1
- me-south-1
- sa-east-1
- us-east-1
- us-east-2
- us-west-1
- us-west-2
needs:
- cdk-synth
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: layers-amd64
path: layers/
- uses: actions/download-artifact@v4
with:
name: layers-arm64
path: layers/
- uses: actions/setup-python@v5
with:
python-version: 3.12.1
- uses: actions/setup-node@v4
with:
node-version: 20.12.1
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ matrix.aws_region }}
- run: pip install poetry
- run: poetry install --only main
- run: npm install
- run: poetry run npx cdk deploy --require-approval never


0 comments on commit 9425bbd

Please sign in to comment.