-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: make the deploy prod have a soak time
- Loading branch information
1 parent
e2f490f
commit f24df5d
Showing
3 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
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
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,37 @@ | ||
name: Seed DynamoDB | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
DEPLOYMENT_REGION: | ||
description: 'AWS region to deploy to' | ||
required: false | ||
default: 'us-east-1' | ||
type: string | ||
ENVIRONMENT: | ||
description: 'Environment to deploy to' | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
deploy-to-env: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci | ||
- name: Seed DynamoDB - ${{ github.event.inputs.ENVIRONMENT }} | ||
run: npm run seed | ||
env: | ||
DEPLOYMENT_REGION: ${{ github.event.inputs.DEPLOYMENT_REGION }} | ||
ENVIRONMENT: ${{ github.event.inputs.ENVIRONMENT }}d |
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