devroom.io/.gitlab-ci.yml

22 lines
625 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-04 15:14:53 +00:00
- echo $SSH_PRIVATE_KEY > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
2015-12-04 14:49:09 +00:00
- cat /etc/apt/sources.list
- apt-get update -yq
2015-12-04 14:48:28 +00:00
- apt-get install -yq --no-install-recommends rsync
2015-12-04 14:14:42 +00:00
- go get -v 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
- rsync -aqz --delete-after --no-progress public/* -e ssh -o 'UserKnownHostsFile=/dev/null,StrictHostKeyChecking=no' ariejan@mail.devroom.io:/home/ariejan/www/ariejan.net