Skip to content

update no-service pattern #135

update no-service pattern

update no-service pattern #135

# ~~ Generated by projen. To modify, edit .projenrc.py and run "npx projen".
name: cdk-deploy-nightly
on:
push:
branches:
- nightly
workflow_dispatch: {}
jobs:
deploy:
name: Deploy CDK stacks to nightly AWS account
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python environment
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::528757783796:role/GitHubDeployRole
aws-region: us-east-1
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: "true"
virtualenvs-in-project: "true"
- name: Install dependencies
run: poetry install --no-root
- name: Install cdk & projen
run: npm install -g aws-cdk projen
- name: Run CDK synth for the NIGHTLY environment
run: projen nightly:synth
- name: Deploy CDK to the NIGHTLY environment on AWS account 528757783796
run: projen nightly:deploy