Production
CI/CD
GitHub Actions runs two independent pipelines: one for the application and one for the documentation site. Both deploy to the same server.
Application pipeline
CI
Runs on every pull request and every push to the main branch. Changes that only touch documentation skip it.
- Backend: lint, type check and syntax check, then the tests, including database tests that run against a throwaway database.
- Frontend: unit tests and a build.
- Browser test: a Chromium run through Playwright.
- Images: the API and frontend images are built on every run, and only when all checks pass. They are published to the registry only on the main branch, tagged with the commit and as the latest image.
CD
A manual deploy, started from the Actions tab and allowed only from the main branch.
- Steps:
- The server pulls the updated repository files.
- The server pulls the new images.
- Database migrations are applied. If a migration fails, the deploy stops and the running API and frontend containers are not replaced.
- The API and frontend containers are replaced.
- The deploy waits for their health checks.
- Image tag: deploys use the newest published image. See Limits and Next Steps.
Documentation pipeline
- CI: a type check, a build and an image. The image is published on the main branch.
- CD: automatic once CI passes on the main branch. It deploys the image of that exact commit.
Server connection
Both deploys reach the server the same way: GitHub connects to it over SSH. The key and the server's address are stored in GitHub secrets.