Skip to content

Commit

Permalink
chore: update deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
daniluk4000 committed Dec 2, 2024
1 parent 7024274 commit a113d91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .config/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ RUN npx prisma generate
RUN yarn build

EXPOSE 3000
CMD ["sh", "-c", "npx prisma migrate deploy && node /radar/.output/server/index.mjs"]
CMD ["sh", "-c", "npx prisma migrate deploy && export $(grep -v '^#' .env | xargs) && node /radar/.output/server/index.mjs"]
3 changes: 1 addition & 2 deletions .github/workflows/publish-next.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Add .env file
run: echo "${{ secrets.ENV }}" > .env
- name: Test .env file
run: ls -la
- name: Build and push
uses: docker/build-push-action@v5
with:
tags: ghcr.io/vatsim-radar/vatsim-radar/next:latest
context: .
push: true
file: .config/Dockerfile

Expand Down

0 comments on commit a113d91

Please sign in to comment.