Merge branch 'add-autodeploy-ci' into 'master'
Add automatic build and deploy of the blog See merge request !1
This commit is contained in:
commit
5e54921d3e
1 changed files with 21 additions and 0 deletions
21
.gitlab-ci.yml
Normal file
21
.gitlab-ci.yml
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue