From 257e2e16064429d64b71f998aa068fe2d3b2d318 Mon Sep 17 00:00:00 2001 From: ori agranat Date: Fri, 8 Nov 2019 21:28:56 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 906fbcdbc..6e6fe46cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,11 +27,15 @@ build_jar: - Main/target deploy: stage: deploy - image: publysher/hugo + image: monachus/hugo:latest + before_script: + - apt-get update + - apt-get --yes --force-yes install git ssh rsync + - git submodule update --init --recursive script: - - echo "${SSH_PRIVATE_KEY}" > id_rsa - - chmod 700 id_rsa - - mkdir "${HOME}/.ssh" - - echo "${SSH_HOST_KEY}" > "${HOME}/.ssh/known_hosts" - - cd Main - - rsync -e 'ssh -i id_rsa' target/* oriagranat9@frs.sourceforge.net:/home/frs/project/ori-test/ + - echo "${SSH_PRIVATE_KEY}" > id_rsa + - chmod 700 id_rsa + - mkdir "${HOME}/.ssh" + - echo "${SSH_HOST_KEY}" > "${HOME}/.ssh/known_hosts" + - cd Main + - rsync -e 'ssh -i id_rsa' target/* oriagranat9@frs.sourceforge.net:/home/frs/project/ori-test/