25 lines
953 B
YAML
25 lines
953 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 -v github.com/spf13/hugo
|
|
|
|
job:
|
|
only:
|
|
- master
|
|
tags:
|
|
- golang
|
|
script:
|
|
- hugo
|
|
- ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ariejan@mail.devroom.io 'uptime'
|
|
- ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ariejan@mail.devroom.io 'uname -a'
|
|
- ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ariejan@mail.devroom.io 'hostname -f'
|
|
- rsync -avczmh4 --progress --stats --delete-after public/* -e 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ariejan@mail.devroom.io:/home/ariejan/www/ariejan.net'
|