rsync
This commit is contained in:
parent
185c897c0a
commit
0b5e8ada92
|
@ -2,24 +2,13 @@ image: golang:1.5
|
|||
|
||||
before_script:
|
||||
- go get -v github.com/spf13/hugo
|
||||
- apt-get install rsync
|
||||
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build_job:
|
||||
stage: build
|
||||
job:
|
||||
only:
|
||||
- master
|
||||
tags:
|
||||
- golang
|
||||
script:
|
||||
- hugo
|
||||
|
||||
deploy_job:
|
||||
stage: deploy
|
||||
only:
|
||||
- master
|
||||
tags:
|
||||
- golang
|
||||
script:
|
||||
- rsync -aqz --delete-after --no-progress public/ -e ssh $RSYNC_TARGET
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user