Merge pull request #8 from rehanvdm/develop #5
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
name: Stage Deploy | |
on: | |
push: | |
branches: | |
- "stage" | |
permissions: | |
id-token: write # AWS OIDC | |
contents: read # Checkout | |
env: | |
FORCE_COLOR: "1" | |
jobs: | |
stage_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install Node | |
run: npm ci | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
role-to-assume: arn:aws:iam::581184285249:role/github-oidc-role | |
aws-region: eu-west-1 | |
- name: CDK Diff | |
run: npm run cdk:diff:stage | |
env: | |
FORCE_COLOR: "1" | |
- name: CDK Deploy | |
run: npm run cdk:deploy:stage | |
env: | |
FORCE_COLOR: "1" |