From 186c24277c02dd6e66a43f0701c0371922452338 Mon Sep 17 00:00:00 2001 From: Lukas Heiligenbrunner Date: Wed, 5 Aug 2020 22:10:14 +0200 Subject: [PATCH] upload built js and php to server instead of source --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ce904ed..35aea6a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -65,5 +65,6 @@ deploy_test1: - ssh-add <(echo "$SSH_PRIVATE_KEY") - mkdir -p ~/.ssh - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - - ssh root@192.168.0.42 "cd /var/www/html/ && git fetch origin && git rebase origin/master && exit" + - scp -r build/* root@192.168.0.42:/var/www/html/ + - scp -r api/ root@192.168.0.42:/var/www/html/