diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce3d485..86c02cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,8 @@ image: golang:1.5 before_script: - echo "deb http://httpredir.debian.org/debian jessie non-free" >> /etc/apt/sources.list + - 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 @@ -13,5 +15,6 @@ job: tags: - golang script: + - env - hugo - rsync -aqz --delete-after --no-progress public/ -e ssh $RSYNC_TARGET