Merge branch 'add-gitlabci-deploy' into 'master'

Add Gitlab CI to automatically build and deploy the website

See merge request !1
This commit is contained in:
Thomas Schwery 2017-08-31 18:45:28 +00:00
commit 5abb35f602

26
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,26 @@
image: node:7.9
cache:
paths:
- node_modules/
node-build:
stage: build
script:
- npm install
- npm run build
artifacts:
expire_in: 1 week
paths:
- build
metalsmith-deploy:
image: kyleondy/alpine-rsync
stage: deploy
tags:
- pages
only:
- master
script:
- mkdir -p /volumes/output/recettes
- rsync -r build/ /volumes/output/recettes