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:
commit
5abb35f602
1 changed files with 26 additions and 0 deletions
26
.gitlab-ci.yml
Normal file
26
.gitlab-ci.yml
Normal 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
|
Loading…
Add table
Reference in a new issue