CI/CD Pipeline¶
Atlas ERP uses GitHub Actions to automate linting, testing, and deployment.
Overview of Workflows¶
Workflows are defined in .github/workflows/.
- CI (Continuous Integration): Runs on every Pull Request to
main. - CD (Continuous Deployment): Runs when a PR is merged into
main.
The CI Pipeline (ci.yml)¶
The CI pipeline ensures code quality before it can be merged.
The CD Pipeline¶
If you are using Vercel and Render, you often don't need a complex CD pipeline in GitHub Actions, because those platforms offer Automatic Git Deployments.
- Vercel: Automatically builds and deploys the
apps/webdirectory when changes are pushed tomain. - Render: Automatically builds and deploys the
apps/apidirectory when changes are pushed tomain.
Custom Deployment Script¶
If you are deploying to a VPS or custom server, you can use GitHub actions to SSH into your server and run a deployment script.