rsync
This commit is contained in:
parent
185c897c0a
commit
0b5e8ada92
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user