blog-hugo/.gitlab-ci.yml

23 lines
434 B
YAML

image: golang:1.9
gohugo-build:
script:
- git submodule sync --recursive
- git submodule update --init --recursive
- go get github.com/gohugoio/hugo
- hugo
artifacts:
expire_in: 1 week
paths:
- public
gohugo-deploy:
image: kyleondy/alpine-rsync
stage: deploy
tags:
- pages
only:
- master
script:
- mkdir -p /volumes/output/thomas
- rsync -r public/ /volumes/output/thomas