Updating CI

This commit is contained in:
Joshua Boniface 2017-05-15 02:31:48 -04:00
parent 947b70c98d
commit 2fdf1ad858
1 changed files with 9 additions and 16 deletions

View File

@ -1,23 +1,16 @@
stages:
- compile
# - deploy
compile:
stage: compile
before_script:
- deploy
deploy:
stage: deploy
before_script:
- git submodule update --init
script: hugo --cleanDestinationDir=true -d /srv/runner/live/www.boniface.me/
script:
- hugo
- /usr/local/bin/deploy-site www.boniface.me
artifacts:
when: on_failure
paths:
- public
expire_in: 5 min
only:
- master
#deploy to dreamhost:
# stage: deploy
# script: rsync -e "/usr/bin/ssh" -rv public/ anthonylavado@clam.dreamhost.com:blog.anthonylavado.com
# environment: production
# only:
# - master