Add debug output and use npx tsc directly in backend build #17
This file contains hidden or 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: Deploy to Coolify | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Deploy to Coolify | |
| uses: appleboy/ssh-action@v1.0.0 | |
| with: | |
| host: ${{ secrets.COOLIFY_HOST }} | |
| username: ${{ secrets.COOLIFY_USER }} | |
| key: ${{ secrets.COOLIFY_SSH_KEY }} | |
| script: | | |
| cd /path/to/leafmark | |
| git pull origin main | |
| docker compose -f docker-compose.yaml down | |
| docker compose -f docker-compose.yaml build --no-cache | |
| docker compose -f docker-compose.yaml up -d | |
| docker compose -f docker-compose.yaml exec -T backend npm run prisma:migrate:deploy --workspace=apps/backend |