Skip to content

Commit

Permalink
add migration to action (#73)
Browse files Browse the repository at this point in the history
Co-authored-by: NHT <[email protected]>
  • Loading branch information
nfesta2023 and hoangtuan910 authored Mar 14, 2024
1 parent 316aeef commit 9e0646c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/CICDwithEC2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ on:

workflow_dispatch:

env:
BACKEND_ENV: stage
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_NAME: ${{ secrets.DB_NAME }}

jobs:
build:
runs-on: ubuntu-22.04
Expand All @@ -24,6 +32,7 @@ jobs:
cache: 'yarn'

- run: yarn install --immutable
- run: npm run typeorm migration:run -- -d ./src/migration.config.ts
- run: yarn build

- name: rsync deployments
Expand Down

0 comments on commit 9e0646c

Please sign in to comment.