How to build a CI/CD pipeline
Updated 11/29/2026
CI/CD (continuous integration and delivery) automatically runs your tests and deployment on every code change, so you catch errors early and ship without manual effort.
Typical stages
- Build: install dependencies and compile.
- Test: run the automated tests.
- Deploy: if tests pass, ship to the server.
With Gitea Actions
Gitea includes an Actions system compatible with GitHub's syntax. You create a .gitea/workflows/deploy.yml file:
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: composer install --no-dev
- run: php artisan test
- run: ./deploy.sh
You need a "runner" that executes the jobs, on the same server or another. See installing Gitea.
Runner on your own server
A dedicated runner on a VPS gives you full control and fixed costs, unlike the paid minutes of cloud services. With hourly billing you can start a runner only when you need it.
Secrets
Deploy keys and passwords go as secrets in the Gitea interface, never in code, see managing environment variables.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
Error tracking for your applications with GlitchTip
Catch production exceptions with the Sentry SDKs on a small server: the project, the DSN, alerts and uptime.
Updated 11/29/2026Dev environmentsTest your application's email with smtp4dev
Send the email from Laravel, WordPress, Node or Python to a test SMTP server and read it in a web inbox, without it ever reaching real customers.
Updated 11/29/2026Dev environmentsHow to set up a staging environment
Test changes on a copy of production before shipping them, to avoid surprises.
Updated 11/29/2026