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