COW: <component> / <subservice>
In order to create a new subservice:
- Create project in GitLab
- Pull project to your local development branch
- Copy and paste this project (except
.git
directory) to the newly created project - Rename every
grading-endpoint
you see in the files to eithercomponent-subservice
or indicate otherwise. git commit -am "feat: initial commit"
git push
- Open project in GitLab and go to Settings -> CI/CD
- Under General Pipelines change Test Coverage Parsing to :
All files\s*\|\s*(\d+).*
- Under Runners activate COW Runner for your project
- Under Variables add Protected variables of:
GL_TOKEN : <copy from this project's settings> NPM_TOKEN : <copy fron this project's settings> IMPORTANT: Do not commit these values to Git - TODO: We actually have to move this to runner's Kubernetes secrets
- Under General Pipelines change Test Coverage Parsing to :
- Delete these steps and write something meaningful that explains the purpose of the subservice.
- Start coding!