Updating CI
This commit is contained in:
parent
947b70c98d
commit
2fdf1ad858
|
@ -1,23 +1,16 @@
|
||||||
stages:
|
stages:
|
||||||
- compile
|
- deploy
|
||||||
# - deploy
|
deploy:
|
||||||
|
stage: deploy
|
||||||
compile:
|
|
||||||
stage: compile
|
|
||||||
before_script:
|
before_script:
|
||||||
- git submodule update --init
|
- 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:
|
artifacts:
|
||||||
|
when: on_failure
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
expire_in: 5 min
|
||||||
only:
|
only:
|
||||||
- master
|
- 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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue