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

Merge branch 'master' into 'master'

Update to use docker executor.

See merge request !1
parents 78a294c0 40b18433
No related branches found
No related tags found
1 merge request!1Update to use docker executor.
...@@ -3,10 +3,12 @@ variables: ...@@ -3,10 +3,12 @@ variables:
CANVAS_COURSE_CODE: 0 CANVAS_COURSE_CODE: 0
# Update this value to the correct course code # Update this value to the correct course code
# Used if docker runner is needed, currently we run locally on a designated computer with this installed default:
#image: "python:3.7" tags:
#before_script: - docker-executor
# - python3 -m pip install canvasapi image: "python:3.9"
before_script:
- python3 -m pip install canvasapi
canvas_push: canvas_push:
script: script:
...@@ -14,8 +16,5 @@ canvas_push: ...@@ -14,8 +16,5 @@ canvas_push:
git clone --depth=1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.control.lth.se/regler/canvassync.git git clone --depth=1 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.control.lth.se/regler/canvassync.git
python3 canvassync/canvas_sync.py python3 canvassync/canvas_sync.py
stage: deploy stage: deploy
only: rules:
refs: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # run only for pushes to main/master
- master
#changes:
# - to_canvas/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment