Update gitlab-ci jobs to add the update job

Signed-off-by: Rémy Jacquin <remy@remyj.fr>
This commit is contained in:
Rémy Jacquin 2018-01-23 14:18:28 +01:00
parent 1d96617b2c
commit b135340c71
No known key found for this signature in database
GPG Key ID: BEEF3B9EC3E7FBE9

View File

@ -23,6 +23,8 @@ test:
script:
- docker build -t $IMAGE_NAME .
- docker run -v `pwd`:/git $IMAGE_NAME /bin/sh -c "wget -qO- https://fedoraproject.org/static/hotspot.txt | grep OK && cd /git && hugo"
except:
- schedules
deploy:
stage: deploy
@ -32,3 +34,11 @@ deploy:
- docker push $IMAGE_LATEST
only:
- tags
update:
image: python:3.6
before_script: []
script:
- ./update.py $API_TOKEN $PROJECT
only:
- schedules