Skip to content
Snippets Groups Projects
Commit 0a19b905 authored by Albin Heimerson's avatar Albin Heimerson
Browse files

move env vars

parent 2eb11928
No related branches found
No related tags found
No related merge requests found
......@@ -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.
# Set environment variables
# Set environment variable
variables:
asdf: "asdf"
CANVAS_COURSE_CODE: 1342
image: "python:3.7"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment