Skip to content

Joining the team ​

You are joining the project. Here is what you need, in order.

1. Access ​

AccessForWho grants it
GitLab project member (Developer or Maintainer role)push branches, open merge requests, see pipelinesElias
SSH key on the serversconnect to trinity-dev and trinity-prodElias
Ansible Vault passwordrun the playbookElias, 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 ​

ToolFor
Giteveryone
Dockerrunning the images locally
Node.js 22the web, and these docs
Python 3.11the API
Ansibleonly to touch the servers

3. Clone and run ​

sh
git clone git@gitlab.com:epitech_gitlab/trinity-devops.git
cd trinity-devops
git switch develop

Then follow Run the API and Run the web.

4. Your first change ​

  1. Create a branch: git switch -c feature/my-change.
  2. Make your changes, run the tests locally.
  3. Push: git push -u origin feature/my-change. The pipeline runs the lint and tests of the changed part.
  4. Open a merge request to develop. The pipeline and test results show up in it.
  5. After review and merge, develop deploys 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 develop or main.
  • A new route, column or variable is documented in the same merge request.
  • If the site goes down: If the site goes down.