-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rehanvandermerwe
committed
Feb 19, 2024
1 parent
9dde066
commit 77e48e0
Showing
4 changed files
with
105 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Deploy Develop | ||
on: | ||
push: | ||
branches: | ||
- "develop" | ||
|
||
permissions: | ||
id-token: write # AWS OIDC | ||
contents: read # Checkout | ||
|
||
env: | ||
FORCE_COLOR: "1" | ||
|
||
jobs: | ||
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:dev | ||
- name: CDK Deploy | ||
run: npm run cdk:deploy:dev |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Deploy Stage | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
|
||
permissions: | ||
id-token: write # AWS OIDC | ||
contents: read # Checkout | ||
|
||
env: | ||
FORCE_COLOR: "1" | ||
|
||
jobs: | ||
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:prod | ||
- name: CDK Deploy | ||
run: npm run cdk:deploy:prod |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Deploy Stage | ||
on: | ||
push: | ||
branches: | ||
- "stage" | ||
|
||
permissions: | ||
id-token: write # AWS OIDC | ||
contents: read # Checkout | ||
|
||
env: | ||
FORCE_COLOR: "1" | ||
|
||
jobs: | ||
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 | ||
- name: CDK Deploy | ||
run: npm run cdk:deploy:stage |