Skip to content

Commit

Permalink
restore cdk deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
RohinBhargava committed Oct 9, 2024
1 parent 6fe5596 commit 0f45c5f
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions .github/workflows/deploy-fdr-dev.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Deploy FDR Dev

on:
pull_request
# push:
# branches:
# - main
# paths:
# - "fern/apis/fdr/**"
# - "fern/fern.config.json"
# - "servers/fdr-deploy/**"
# - "servers/fdr/**"
# - ".github/workflows/deploy-fdr-dev.yml"
# - ".github/workflows/publish-fdr-sdk.yml"
# - "packages/fdr-sdk/**"
# - "pnpm-lock.yaml"
push:
branches:
- main
paths:
- "fern/apis/fdr/**"
- "fern/fern.config.json"
- "servers/fdr-deploy/**"
- "servers/fdr/**"
- ".github/workflows/deploy-fdr-dev.yml"
- ".github/workflows/publish-fdr-sdk.yml"
- "packages/fdr-sdk/**"
- "pnpm-lock.yaml"

env:
PACKAGE_NAME: "@fern-platform/fdr"
Expand Down Expand Up @@ -76,15 +75,15 @@ jobs:
# env:
# DATABASE_URL: ${{ secrets.DEV_POSTGRES_URL }}/fdr?schema=public

# - name: 🚀 cdk deploy
# run: |
# git_version="$(scripts/git-version.sh)"
# pnpm --filter=@fern-platform/fdr run docker:dev "${git_version}"
# npm install -g aws-cdk
# cd servers/fdr-deploy
# VERSION="${git_version}" pnpm --filter=@fern-platform/fdr-deploy deploy:dev
# env:
# DATABASE_URL: ${{ secrets.DEV_POSTGRES_URL }}/fdr?schema=public
- name: 🚀 cdk deploy
run: |
git_version="$(scripts/git-version.sh)"
pnpm --filter=@fern-platform/fdr run docker:dev "${git_version}"
npm install -g aws-cdk
cd servers/fdr-deploy
VERSION="${git_version}" pnpm --filter=@fern-platform/fdr-deploy deploy:dev
env:
DATABASE_URL: ${{ secrets.DEV_POSTGRES_URL }}/fdr?schema=public

smoke-test:
needs: deploy_dev
Expand Down

0 comments on commit 0f45c5f

Please sign in to comment.