feat: ✨ init config user table #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: ▶️ CD pipeline cdk deploy | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- dev | |
- hom | |
- main | |
paths-ignore: | |
- ".github/**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: development | |
steps: | |
- name: 🔄 Checkout Repository | |
uses: actions/checkout@v4 | |
- name: 🔒 Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: ⬇️ Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "npm" | |
- name: 📦 Install aws-cdk and all dependencies | |
run: | | |
npm install -g aws-cdk | |
npm install | |
cd app && npm install | |
- name: 📂 Print Working Directory | |
run: pwd && ls -la | |
- name: 🛠️ Build Project | |
run: npm run build | |
- name: ⚕️ CDK Doctor | |
run: cdk doctor | |
- name: 🥾 CDK Bootstrap | |
timeout-minutes: 15 | |
run: cdk bootstrap aws://883183666441/us-east-1 --force | |
- name: ✅ CDK Synth Stack | |
run: cdk synth | |
- name: 🚀 Deploy CDK Stack | |
id: deploy | |
run: | | |
DEPLOY_OUTPUT=$(cdk deploy --require-approval never) | |
echo "$DEPLOY_OUTPUT" |