Add explicit OPTIONS routes for CORS preflight (Railway) #12
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 Build | |
| on: | |
| push: | |
| paths: | |
| - "backend/**" | |
| - "frontend/**" | |
| - "infra/**" | |
| - "docker-compose.yml" | |
| - ".github/workflows/docker-build.yml" | |
| pull_request: | |
| paths: | |
| - "backend/**" | |
| - "frontend/**" | |
| - "infra/**" | |
| - "docker-compose.yml" | |
| - ".github/workflows/docker-build.yml" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build backend image | |
| run: docker build -t papermind-backend ./backend | |
| - name: Build frontend image | |
| run: docker build -t papermind-frontend ./frontend | |