From cd3e307cf877a67dda4a134d8479a5941da8e50a Mon Sep 17 00:00:00 2001 From: Thomas Schwery Date: Wed, 6 Sep 2017 13:35:47 +0200 Subject: [PATCH] Add automatic build and deploy of the blog --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..91ca899 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +image: golang:1.9 + +before_script: + - git submodule sync --recursive + - git submodule update --init --recursive + +gohugo-build: + script: + - go get github.com/gohugoio/hugo + - hugo + +gohugo-deploy: + image: kyleondy/alpine-rsync + stage: deploy + tags: + - pages + only: + - master + script: + - mkdir -p /volumes/output/thomas + - rsync -r public/ /volumes/output/thomas