devroom.io/.gitlab-ci.yml

23 lines
766 B
YAML
Raw Normal View History

2015-12-04 14:09:01 +00:00
image: golang:1.5
before_script:
2015-12-04 14:52:12 +00:00
- echo "deb http://httpredir.debian.org/debian jessie non-free" >> /etc/apt/sources.list
2015-12-04 15:15:56 +00:00
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
2015-12-10 09:27:25 +00:00
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
2015-12-04 15:14:53 +00:00
- chmod 600 ~/.ssh/id_rsa
2015-12-04 14:49:09 +00:00
- cat /etc/apt/sources.list
- apt-get update -yq
2016-01-13 12:14:48 +00:00
- apt-get install -yq --no-install-recommends rsync yui-compressor
2015-12-10 09:31:43 +00:00
- go get github.com/spf13/hugo
2015-12-04 14:09:01 +00:00
2015-12-04 14:34:29 +00:00
job:
2015-12-04 14:09:01 +00:00
only:
- master
tags:
2015-12-04 14:34:29 +00:00
- golang
2015-12-04 14:09:01 +00:00
script:
2015-12-04 14:34:29 +00:00
- hugo
2016-01-13 12:19:25 +00:00
- yui-compressor themes/outerspace/static/css/outerspace.css -o themes/outerspace/static/css/outerspace.css
2015-12-10 09:43:11 +00:00
- 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/