From fc1973537a3f7d0994b69494398bfa577a9c1557 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Tue, 1 Aug 2017 17:48:05 +0200 Subject: [PATCH] testing --- .gitlab-ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8dce706..d088620 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,16 +1,27 @@ image: dmp1ce/hakyll:latest -pages: +deploy: before_script: + - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' + + # run ssh-agent + - eval $(ssh-agent -s) + + # add ssh key stored in SSH_PRIVATE_KEY variable to the agent store + - ssh-add <(echo "$SSH_PRIV_KEY") + + # disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks) + # WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config + - mkdir -p ~/.ssh + - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config + - cabal update - cabal install regex-compat script: - cabal build - cabal run clean - cabal run build - artifacts: - paths: - - public + - scp -r public root@testing.thaum.space:/usr/local/www/blog/ only: - master