23 lines
766 B
YAML
23 lines
766 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/outerspace/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/
|