added ci file

This commit is contained in:
david 2017-05-06 09:43:04 +02:00
parent faceb3bf58
commit 3709c1a022
1 changed files with 37 additions and 0 deletions

37
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,37 @@
stages:
- test
- build
- deploy
test:
stage: test
tags:
- jekyll
script:
- jekyll build -d test
except:
- master
build:
stage: deploy
tags:
- jekyll
script:
- jekyll build -d public
only:
- master
deploy:
stage: deploy
tags:
- jekyll
script:
- jekyll build -d public
- rsync -av --delete public/* /home/user-data/www/socialnerds.org
environment:
name: production
url: https://socialnerds.org
only:
- master