updated ci file
This commit is contained in:
parent
1f21f5a6f5
commit
a63875d032
|
@ -1,34 +1,16 @@
|
||||||
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 ruby-full build-essential zlib1g-dev rsync
|
||||||
|
- gem install bundler jekyll
|
||||||
- jekyll build -d public
|
- jekyll build -d public
|
||||||
- rsync -av --exclude '.well-known' --delete public/ /var/www/gmur.ml/
|
- rsync -av --exclude '.well-known' --delete public/ /srv/gmur.ml/
|
||||||
environment:
|
environment:
|
||||||
name: production
|
name: production
|
||||||
url: https://gmur.ml
|
url: https://gmur.ml
|
||||||
|
|
Reference in New Issue