From 5cfe1b23f127ab7ee500f197098be633c72c8e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20L=C3=B8vbr=C3=B8tte=20Olsen?= Date: Thu, 23 May 2019 19:03:09 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a8e7c0..6c435dc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,7 +17,9 @@ build: deploy: stage: deploy script: - - 'which ssh-agent || ( apk add --no-cache zip openssh-client )' + - 'which ssh-agent || ( apk add --no-cache openssh-client )' + - apk add --no-cache rsync + - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh @@ -25,4 +27,4 @@ deploy: - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts - - ssh "$SERVER_HOST" ls "$WPD_FOLDER" \ No newline at end of file + - rsync --dry-run -avz "$SERVER_HOST" out/ "$WPD_FOLDER" \ No newline at end of file