Skip to content

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 ​

BranchRoleDeploys to
feature/*, fix/*A task in progressnothing (lint and tests only)
developTeam integrationdev
mainWhat is in productionprod

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:

TypeWhenExample from the repository
featNew featurefeat(web): restyle the page and manage products from it
fixFixfix(api): let appuser write the static files in the prod image
ciPipelineci: deploy dev and prod automatically
choreMaintenancechore(traefik): set the Let's Encrypt contact email
docsDocumentationdocs(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.