diff --git a/gitlab-ci.yml b/gitlab-ci.yml index 90fbbeb152c230ee74c8a5c43592c10b070c5e7e..f8d1b910117c0ee4f70c4911de7f18dcccfe74f9 100644 --- a/gitlab-ci.yml +++ b/gitlab-ci.yml @@ -3,18 +3,16 @@ variables: CANVAS_COURSE_CODE: 0 # Update this value to the correct course code -image: "python:3.7" - -before_script: - - python3 -m pip install canvasapi +# Used if docker runner is needed, currently we run locally on a designated computer with this installed +#image: "python:3.7" +#before_script: +# - python3 -m pip install canvasapi canvas_push: script: - | - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.control.lth.se/regler/canvassync.git - ls -al - cp canvassync/canvas_sync.py ./ - python3 canvas_sync.py + git clone --depth=1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.control.lth.se/regler/canvassync.git + python3 canvassync/canvas_sync.py stage: deploy only: changes: