devroom.io/.gitlab-ci.yml
Ariejan de Vroom 417075bfa7 CI: Meh
2015-12-10 10:43:11 +01:00

22 lines
639 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
- go get github.com/spf13/hugo
job:
only:
- master
tags:
- golang
script:
- hugo
- 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/