Add sync CI task
This commit is contained in:
parent
6e1eb5a5a1
commit
41a4fbdf37
1 changed files with 18 additions and 3 deletions
|
@ -1,7 +1,13 @@
|
||||||
stages:
|
stages:
|
||||||
|
- sync
|
||||||
- deadlines
|
- deadlines
|
||||||
- plagiates
|
- plagiates
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- cp python-gitlab.cfg $HOME/.python-gitlab.cfg
|
||||||
|
- echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
|
||||||
create_tags:
|
create_tags:
|
||||||
image: python:3
|
image: python:3
|
||||||
stage: deadlines
|
stage: deadlines
|
||||||
|
@ -12,7 +18,16 @@ create_tags:
|
||||||
- abgabesystem
|
- abgabesystem
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cp python-gitlab.cfg $HOME/.python-gitlab.cfg
|
|
||||||
- echo "private_token = ${PRIVATE_API_TOKEN}" >> $HOME/.python-gitlab.cfg
|
|
||||||
- pip install -r requirements.txt
|
|
||||||
- python abgabesystem.py deadlines
|
- python abgabesystem.py deadlines
|
||||||
|
|
||||||
|
sync_students:
|
||||||
|
image: python:3
|
||||||
|
stage: sync
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
tags:
|
||||||
|
- abgabesystem
|
||||||
|
|
||||||
|
script:
|
||||||
|
- python abgabesystem.py sync
|
Loading…
Add table
Add a link
Reference in a new issue