added ci file
This commit is contained in:
parent
66bc063116
commit
cda6acaf9b
|
@ -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/default/
|
||||
environment:
|
||||
name: production
|
||||
url: https://excelsior.socialnerds.org
|
||||
only:
|
||||
- master
|
||||
|
Reference in New Issue