diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 96e4a66..715ba8f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -