diff --git a/README.md b/README.md index db30a53e157af29928965d0366a3bf7ed6f58581..b196a1c1f517366948a7d83226d576819a943b41 100644 --- a/README.md +++ b/README.md @@ -4,5 +4,5 @@ File to handle automatic syncing of files between gitlab and canvas. Mor informa ## Setup To set this up for a new repo there are three steps: * Copy the gitlab-ci.yml file from this repo and place in the root of the new repo with the name .gitlab-ci.yml, notice the dot at the start of the name. -* Add environment variables for the course code and canvas token in the new repo. This is done by navigating to Settings->CI/CD and adding variables. Add the variables CANVAS_COURSE_CODE and CANVAS_TOKEN with respective values (course code can be found in the url on the courses webpage, and token can be found on the wiki). +* Modify the environment variable CANVAS_COURSE_CODE in the new file to correspond to the course code canvas uses in its url. * Set up a runner. Navigate to the same location as in previous step, but instead pick runners in the end. Here are instructions on how to set up your computer as a runner for this project. Hopefully we will soon get shared runners so that we can skip this step. diff --git a/gitlab-ci.yml b/gitlab-ci.yml index 5bc7e433050e21793d306e4c5eb81b0a30021bf4..5d616bc3f4508f6cc32815cc285158a4aa6686b3 100644 --- a/gitlab-ci.yml +++ b/gitlab-ci.yml @@ -1,6 +1,6 @@ -# Set environment variables +# Set environment variable variables: - asdf: "asdf" + CANVAS_COURSE_CODE: 1342 image: "python:3.7"