The Git repository
The whole project lives in a single GitLab repository (a ): https://gitlab.com/epitech_gitlab/trinity-devops.
Where things are
trinity-devops/
├── .gitlab-ci.yml # root pipeline: stages, includes, deployments
├── api/ # Django API (Patrice)
├── web/ # Next.js front end (Jean-Baptiste)
├── infra/ # servers and deployment (Elias)
│ ├── ansible/ # server configuration
│ ├── traefik/ # reverse proxy and routes
│ ├── docker-compose.dev.yml
│ └── docker-compose.prod.yml
└── docs/ # this documentation (VitePress)Each part has its own "Folder layout" page: web, API, DevOps.
Branches
| Branch | Role | Deploys to |
|---|---|---|
feature/*, fix/* | A task in progress | nothing (lint and tests only) |
develop | Team integration | dev |
main | What is in production | prod |
Nobody ever pushes directly to develop or main. We always go through a , which shows the pipeline result before merging.
Commit messages
The repository follows the type(scope): description format, in English:
| Type | When | Example from the repository |
|---|---|---|
feat | New feature | feat(web): restyle the page and manage products from it |
fix | Fix | fix(api): let appuser write the static files in the prod image |
ci | Pipeline | ci: deploy dev and prod automatically |
chore | Maintenance | chore(traefik): set the Let's Encrypt contact email |
docs | Documentation | docs(web): translate web guide to English to match docs/api.md |
What must never be committed
The root .gitignore already excludes the usual cases: .env files, *.pem and *.key keys, the Vault password .vault_pass*, node_modules/, test reports.
A committed secret stays in the history
Deleting the file in a new commit is not enough: the old commit still contains it. If a was pushed, it must be changed (new password, new token). See Secrets and access.