Skip to content

Commit

Permalink
run migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
usmansbk committed Dec 18, 2023
1 parent d718578 commit 934c24b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ jobs:
run: yarn
- name: Run tests
run: yarn test
- name: Run migrations
run: yarn db:deploy
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Load environment variables
run: npx dotenv-vault pull production .env --dotenvMe=${{ secrets.DOTENV_ME }}
# - name: Load environment variables
# run: npx dotenv-vault pull production .env --dotenvMe=${{ secrets.DOTENV_ME }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ COPY --from=builder /app/build ./build
COPY ./prisma ./prisma
COPY ./assets ./assets
COPY .env.vault ./
RUN yarn db:deploy
EXPOSE 4000
CMD yarn start

0 comments on commit 934c24b

Please sign in to comment.