feat: create CI job to generate deployment Merge Requests [BB-4401]
This adds a way to run Tutor through the GitLab CI to create and update instance configurations. The task (triggered with a webhook) adds configurations from the request's body and creates a new MR, which in the future will be used for spawning a new instance.
Testing instructions
- Fork the template repo.
- Set
DIGITALOCEAN_TOKEN
,SPACES_ACCESS_KEY_ID,
SPACES_SECRET_ACCESS_KEYin CI variables to
DUMMY`. - Set a real token for
GITLAB_TOKEN
. - In your fork:
- Change the
ref
in.gitlab-ci.yml
toagrendalath/bb-4401-generate_deployment_mr
. - Checkout the submodule on this branch.
- Commit and push your changes.
- Change the
- Follow this part of the README (you don't need a deployed cluster for this).
- After pushing the request (from the docs), you should see a new job in your forked repo. It will open a new MR.
Edited by Piotr Surowiec