Add automatic build and deploy of the blog

This commit is contained in:
Thomas Schwery 2017-09-06 13:35:47 +02:00
parent 7b1b3551e2
commit cd3e307cf8

21
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,21 @@
image: golang:1.9
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
gohugo-build:
script:
- go get github.com/gohugoio/hugo
- hugo
gohugo-deploy:
image: kyleondy/alpine-rsync
stage: deploy
tags:
- pages
only:
- master
script:
- mkdir -p /volumes/output/thomas
- rsync -r public/ /volumes/output/thomas