Skip to content
Sylvain Blondeau edited this page Apr 1, 2021 · 13 revisions

Prerequisites

Use this template repository to a new Github repository in WildCodeSchool organization following this exemple : ---- as bordeaux-php-1903-project2-servyy Configure you repository - Settings options

Add your students team as contributor .
Disallow both on 'dev' and 'master' branches your students writing credentials.
Disallow merge available while one approbation is not submitted on PR.

You can watch this very tiny short video : (Loom : verrouillage branches GitHub)[https://www.loom.com/share/ad0c641d0b9447be9e40fa38a499953b]

CI/CD

If you want to automatically deploy your master branch, you should have a caprover app already created. (https://captain.phprover.wilders.dev)
In the Github repository, Settings > Secrets, add 2 secrets:

CAPROVER_APP_NAME : with the name of your app on WCS caprover CAPROVER_PASSWORD : whit the password of WCS caprover

And that's all ! A Github action workflow is already confiturated, it will deploy on each update of master branch !

(you still have to manage the database updates manually)

Clone this wiki locally