devroom.io/.gitlab-ci.yml
2016-01-13 13:14:48 +01:00

23 lines
767 B
YAML

image: golang:1.5
before_script:
- echo "deb http://httpredir.debian.org/debian jessie non-free" >> /etc/apt/sources.list
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- cat /etc/apt/sources.list
- apt-get update -yq
- apt-get install -yq --no-install-recommends rsync yui-compressor
- go get github.com/spf13/hugo
job:
only:
- master
tags:
- golang
script:
- hugo
- yui-compressor themes/outerspaces/static/css/outerspace.css -o themes/outerspace/static/css/outerspace.css
- rsync -az4 --stats --delete-after public/* -e "ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" ariejan@mail.devroom.io:/home/ariejan/www/ariejan.net/