From 967ac6db734b44539c193d577861574f08b9ca3c Mon Sep 17 00:00:00 2001 From: Albin Heimerson <albin.heimerson@control.lth.se> Date: Thu, 7 Jan 2021 14:26:02 +0100 Subject: [PATCH] Disable docker image and canvasapi install --- gitlab-ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gitlab-ci.yml b/gitlab-ci.yml index 90fbbeb..f8d1b91 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: -- GitLab