Skip to content
Snippets Groups Projects
Commit 40b18433 authored by Anton Tetov Johansson's avatar Anton Tetov Johansson Committed by Albin Heimerson
Browse files

Update to use docker executor.

parent 78a294c0
No related branches found
No related tags found
1 merge request!1Update to use docker executor.
......@@ -3,10 +3,12 @@ variables:
CANVAS_COURSE_CODE: 0
# 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
#image: "python:3.7"
#before_script:
# - python3 -m pip install canvasapi
default:
tags:
- docker-executor
image: "python:3.9"
before_script:
- python3 -m pip install canvasapi
canvas_push:
script:
......@@ -14,8 +16,5 @@ canvas_push:
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:
refs:
- master
#changes:
# - to_canvas/
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # run only for pushes to main/master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment