Add Gitea CI/CD and Portainer stack templates
Some checks failed
production-orders-sync CI/CD / Test (push) Successful in 9m45s
production-orders-sync CI/CD / Build and Push Image (push) Failing after 8s
production-orders-sync CI/CD / Trigger Portainer (push) Has been skipped

This commit is contained in:
Cauê Faleiros
2026-07-02 14:38:15 -03:00
parent cd6b4c93f0
commit 97d037d18b
5 changed files with 244 additions and 0 deletions

View File

@@ -106,6 +106,22 @@ docker compose run --rm production-orders-sync
The included `postgres` service is only a local example. In normal deployment, set `DATABASE_URL` to the existing Graphs Postgres database.
## Gitea Actions + Portainer
CI/CD is defined in `.gitea/workflows/ci-cd.yml`:
- run `npm test`
- run `npm run check`
- build and push the Docker image
- trigger the Portainer stack webhook when `PORTAINER_WEBHOOK_URL` is configured
Portainer stack templates live in `deploy/`:
- `deploy/portainer-one-shot.yml` for first dry-run checks and backfills
- `deploy/portainer-stack.yml` for the long-running recent polling stack
See `deploy/README.md` for required Gitea secrets and Portainer environment variables.
## Logs
The worker logs: