This commit is contained in:
Ariejan de Vroom 2015-12-04 15:34:29 +01:00
parent 185c897c0a
commit 0b5e8ada92

View File

@ -2,24 +2,13 @@ image: golang:1.5
before_script: before_script:
- go get -v github.com/spf13/hugo - go get -v github.com/spf13/hugo
- apt-get install rsync
stages: job:
- build only:
- deploy - master
build_job:
stage: build
tags: tags:
- golang - golang
script: script:
- hugo - hugo
deploy_job:
stage: deploy
only:
- master
tags:
- golang
script:
- rsync -aqz --delete-after --no-progress public/ -e ssh $RSYNC_TARGET - rsync -aqz --delete-after --no-progress public/ -e ssh $RSYNC_TARGET