Joining the team
You are joining the project. Here is what you need, in order.
1. Access
| Access | For | Who grants it |
|---|---|---|
| GitLab project member (Developer or Maintainer role) | push branches, open merge requests, see pipelines | Elias |
| SSH key on the servers | connect to trinity-dev and trinity-prod | Elias |
| Ansible Vault password | run the playbook | Elias, in person or through a password manager |
To work on the API or the web, only the first access is needed.
Today, Ansible connects as eliashounnou
group_vars/all/main.yml sets ansible_user: eliashounnou. To run the playbook from another machine, you need either that account or to change this variable to your own user.
2. Tools on your machine
| Tool | For |
|---|---|
| Git | everyone |
| Docker | running the images locally |
| Node.js 22 | the web, and these docs |
| Python 3.11 | the API |
| Ansible | only to touch the servers |
3. Clone and run
sh
git clone git@gitlab.com:epitech_gitlab/trinity-devops.git
cd trinity-devops
git switch developThen follow Run the API and Run the web.
4. Your first change
- Create a branch:
git switch -c feature/my-change. - Make your changes, run the tests locally.
- Push:
git push -u origin feature/my-change. The pipeline runs the lint and tests of the changed part. - Open a merge request to
develop. The pipeline and test results show up in it. - After review and merge,
developdeploys to dev on its own.
The full path to prod: From a commit to prod.
5. What you must know from day one
No secret in Git
Never a password, key or token in a committed file, not even temporarily. See Secrets and access.
- Nobody ever pushes directly to
developormain. - A new route, column or variable is documented in the same merge request.
- If the site goes down: If the site goes down.