fix: update environment configuration and improve user route handling #201
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: Docker Prod | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: self-hosted | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create env file | |
| run: | | |
| echo SECRET=${{ secrets.SECRET }} > .env | |
| echo DATABASE_URL=${{ secrets.DATABASE_URL }} >> .env | |
| echo NEXT_PUBLIC_URL=${{ secrets.NEXT_PUBLIC_URL }} >> .env | |
| - name: Docker run | |
| run: docker compose up -d --force-recreate --build |