updated ci file
This commit is contained in:
parent
5c8407d327
commit
e8aa5f7eb5
|
@ -1,37 +1,18 @@
|
||||||
stages:
|
stages:
|
||||||
- test
|
|
||||||
- build
|
|
||||||
- deploy
|
- 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:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
tags:
|
tags:
|
||||||
- jekyll
|
- jekyll
|
||||||
script:
|
script:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install -y ruby-full build-essential zlib1g-dev rsync
|
||||||
|
- gem install bundler jekyll
|
||||||
- jekyll build -d public
|
- jekyll build -d public
|
||||||
- rsync -av --delete public/ /home/user-data/www/default/
|
- rsync -av --delete public/ /srv/default/
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
url: https://excelsior.socialnerds.org
|
url: https://excelsior.socialnerds.org
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
|
Reference in New Issue