From 7573f764fbe48b82671a47bf8dc499a0a682af6d Mon Sep 17 00:00:00 2001 From: Ryuuji Date: Tue, 2 Jun 2020 07:29:21 +0000 Subject: [PATCH 1/4] Testing out gitlab-ci --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..b91dd9d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +image: node:latest + +cache: + paths: + - node_modules/ + +test_execution: + script: + - npm install + - ls -al \ No newline at end of file From 6b4b265c466ade5755ad611050ac081e73a8b4cb Mon Sep 17 00:00:00 2001 From: Ryuuji Date: Tue, 2 Jun 2020 07:52:29 +0000 Subject: [PATCH 2/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b91dd9d..0dfc79b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,8 +3,18 @@ image: node:latest cache: paths: - node_modules/ - + +before_script: + - apt-get update -y && apt-get upgrade -y + - apt-get install rsync -y + - 'which ssh-agent || ( apt-get install openssh-client -y )' + - eval $(ssh-agent -s) + - ssh-add <(echo "$SSH_PRIVATE_KEY") + - mkdir -p ~/.ssh + - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' + test_execution: script: - npm install - - ls -al \ No newline at end of file + - npm run build + - rsync build ryuuji@142.93.158.54:~ \ No newline at end of file From d91492f046c86d08c24e9f33caf4fac7de39fad7 Mon Sep 17 00:00:00 2001 From: Ryuuji Date: Tue, 2 Jun 2020 08:14:09 +0000 Subject: [PATCH 3/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0dfc79b..671b8c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,10 +7,9 @@ cache: before_script: - apt-get update -y && apt-get upgrade -y - apt-get install rsync -y - - 'which ssh-agent || ( apt-get install openssh-client -y )' - - eval $(ssh-agent -s) - - ssh-add <(echo "$SSH_PRIVATE_KEY") - mkdir -p ~/.ssh + - echo -e "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa + - chmod 600 ~/.ssh/id_rsa - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' test_execution: From d3accf96a275eb263b56086e2b68c944999b4c03 Mon Sep 17 00:00:00 2001 From: Ryuuji Date: Tue, 2 Jun 2020 08:27:08 +0000 Subject: [PATCH 4/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 671b8c7..08f2b22 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,4 +16,4 @@ test_execution: script: - npm install - npm run build - - rsync build ryuuji@142.93.158.54:~ \ No newline at end of file + - rsync -rvz build ryuuji@142.93.158.54:~ \ No newline at end of file