updated ci file

This commit is contained in:
david 2019-10-27 19:16:12 +01:00
parent 76838b7e09
commit cecec8d97b
1 changed files with 4 additions and 22 deletions

View File

@ -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 -y ruby-full build-essential zlib1g-dev rsync
- gem install bundler jekyll
- jekyll build -d public - jekyll build -d public
- rsync -rvI --delete public/ /home/user-data/www/socialnerds.org/ - rsync -rvI --delete public/ /srv/socialnerds.org/
environment: environment:
name: production name: production
url: https://socialnerds.org url: https://socialnerds.org