From 0ac4e0ed3ca18832438e2dccf274dbf396476125 Mon Sep 17 00:00:00 2001 From: XenGi Date: Thu, 16 Aug 2018 22:53:05 +0200 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bcb132e..01d38df 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,8 +45,12 @@ deploy_staging: variables: SHELL: "/bin/sh" script: - - echo "deploy all the things..." - - ls -la public/ + - apk --no-cache --upgrade add openssh-client rsync + - mkdir -p ~/.ssh + - eval $(ssh-agent -s) + - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config + - ssh-add <(echo "$PRIVATE_KEY") + - rsync -e "ssh -l deploy -p 31337" -av public/ 195.54.164.87:s when: on_success environment: name: staging