From d03a0d03ceea6518ed29607e8d0187a200e65dc7 Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Wed, 5 Sep 2018 23:44:17 +0800 Subject: [PATCH 01/14] update drone --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a9603dc..37be4ff 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,7 +26,6 @@ pipeline: - /drone/src/github.com/horsekitlin/goodfood_admin when: branch: develop - status: [ suucess ] ssh: image: appleboy/drone-ssh host: From 83e0fdba91b9935ab306902db4804487bb2ea07d Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Wed, 5 Sep 2018 23:48:22 +0800 Subject: [PATCH 02/14] update test command --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 37be4ff..7372e1a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,7 +10,7 @@ pipeline: group: testing commands: - yarn install - - yarn run test --all + - yarn run test scp: image: appleboy/drone-scp From 67cfd4f19108b4370e83c60004948752f98911cf Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Wed, 5 Sep 2018 23:52:46 +0800 Subject: [PATCH 03/14] udpate drone path --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7372e1a..09fda93 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,7 +23,7 @@ pipeline: secrets: [ ssh_password ] target: /root source: - - /drone/src/github.com/horsekitlin/goodfood_admin + - /drone/src/github.com/MonospaceTW/goodfood_admin when: branch: develop ssh: From 71f0c075d4976fb2ac0b21c146f34dbeaef2a91c Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Thu, 6 Sep 2018 00:16:35 +0800 Subject: [PATCH 04/14] update ${DRONE_REPO} --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 09fda93..8e8783a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,7 +23,7 @@ pipeline: secrets: [ ssh_password ] target: /root source: - - /drone/src/github.com/MonospaceTW/goodfood_admin + - ${DRONE_REPO}/goodfood_admin when: branch: develop ssh: From 45fb36990bdfeec413f3ac009515e570eb0ee8dc Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Fri, 7 Sep 2018 15:02:32 +0800 Subject: [PATCH 05/14] remove test --- .drone.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8e8783a..e14bad3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,9 +1,4 @@ pipeline: - install: - image: node:10.9.0 - commands: - # - yarn install - - pwd testing: image: node:10.9.0 From d53d41151c54b2387b6c134934dd45507d8a43f4 Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Fri, 7 Sep 2018 22:19:28 +0800 Subject: [PATCH 06/14] update drone.yml --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index e14bad3..85df09b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,10 +17,13 @@ pipeline: user: root secrets: [ ssh_password ] target: /root + commands: + - pwd source: - ${DRONE_REPO}/goodfood_admin when: branch: develop + ssh: image: appleboy/drone-ssh host: From 00030aa7d3028c6191660f6270d7b169ed9507aa Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Fri, 7 Sep 2018 22:58:40 +0800 Subject: [PATCH 07/14] update source path --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 85df09b..80ce029 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,7 +20,7 @@ pipeline: commands: - pwd source: - - ${DRONE_REPO}/goodfood_admin + - /drone/src/github.com/horsekitlin/goodfood_admin/ when: branch: develop From 8179155eb9f11605fdcb952e04d16b39845aa697 Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Fri, 7 Sep 2018 22:59:38 +0800 Subject: [PATCH 08/14] update path --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 80ce029..1fa4808 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,7 +20,7 @@ pipeline: commands: - pwd source: - - /drone/src/github.com/horsekitlin/goodfood_admin/ + - /drone/src/github.com/horsekitlin/goodfood_admin when: branch: develop From e9cd633941fd4ef4c4319f81e4cae8f15d0e026f Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Fri, 7 Sep 2018 23:01:16 +0800 Subject: [PATCH 09/14] updasste drone.yml --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1fa4808..370c846 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,7 @@ pipeline: source: - /drone/src/github.com/horsekitlin/goodfood_admin when: - branch: develop + status: [changed] ssh: image: appleboy/drone-ssh From 5bf1046c6b601d62a627fa8c0fb15881891d89a1 Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Fri, 7 Sep 2018 23:01:45 +0800 Subject: [PATCH 10/14] updaste --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 370c846..1fa4808 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,7 +22,7 @@ pipeline: source: - /drone/src/github.com/horsekitlin/goodfood_admin when: - status: [changed] + branch: develop ssh: image: appleboy/drone-ssh From 9abd68cc909cc1e65412e2035f5096a116d79ea2 Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Fri, 7 Sep 2018 23:04:00 +0800 Subject: [PATCH 11/14] update --- .drone.yml | 81 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1fa4808..3f55241 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,33 +1,36 @@ -pipeline: - - testing: - image: node:10.9.0 - group: testing - commands: - - yarn install - - yarn run test - - scp: - image: appleboy/drone-scp - pull: true - host: - - 139.162.9.68 - port: 22 - username: root - user: root - secrets: [ ssh_password ] - target: /root - commands: - - pwd - source: - - /drone/src/github.com/horsekitlin/goodfood_admin - when: - branch: develop - - ssh: - image: appleboy/drone-ssh - host: - - 139.162.9.68 + pipeline: + install: + image: node:10.9.0 + commands: + # - yarn install + - pwd + + + # testing: + # image: node:10.9.0 + # group: testing + # commands: + # - yarn run test + + scp: + image: appleboy/drone-scp + pull: true + host: + - 139.162.9.68 + port: 22 + username: root + user: root + secrets: [ ssh_password ] + target: /root + source: + - /drone/src/github.com/horsekitlin/goodfood_admin + when: + branch: develop + # status: [ suucess ] + ssh: + image: appleboy/drone-ssh + host: + - 139.162.9.68 username: root user: root secrets: [ ssh_password ] @@ -35,12 +38,12 @@ pipeline: script: - . /root/.nvm/nvm.sh && nvm use 10.9.0 - mkdir -p /var/www/html/goodfood.tomaslin.com.tw - - cd /root/drone/src/github.com/horsekitlin/goodfood_admin/ - - yarn install - - yarn build - - cp -a build/* /var/www/html/goodfood.tomaslin.com.tw - - cd /root - - rm -rf /root/drone - - when: - branch: develop + - cd /root/drone/src/github.com/horsekitlin/goodfood_admin/ + - yarn install + - yarn build + - cp -a build/* /var/www/html/goodfood.tomaslin.com.tw + - cd /root + - rm -rf /root/drone + + when: + branch: develop \ No newline at end of file From b86ad24cfb943cc85444a765b62f7c316837116a Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Fri, 7 Sep 2018 23:05:35 +0800 Subject: [PATCH 12/14] update --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3f55241..6f47ba6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,7 +26,6 @@ - /drone/src/github.com/horsekitlin/goodfood_admin when: branch: develop - # status: [ suucess ] ssh: image: appleboy/drone-ssh host: From b4755fbac02c20dee69f820da34232db22ad1da7 Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Fri, 7 Sep 2018 23:06:39 +0800 Subject: [PATCH 13/14] update drone --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 6f47ba6..5053c59 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,6 +26,7 @@ - /drone/src/github.com/horsekitlin/goodfood_admin when: branch: develop + ssh: image: appleboy/drone-ssh host: From 9340e5e9c8f6be3de692dfe2b6c037f828acb021 Mon Sep 17 00:00:00 2001 From: Tomas Lin Date: Fri, 7 Sep 2018 23:09:30 +0800 Subject: [PATCH 14/14] update drone --- .drone.yml | 81 +++++++++++++++++++++++++++--------------------------- 1 file changed, 40 insertions(+), 41 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5053c59..684d50c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,36 +1,36 @@ - pipeline: - install: - image: node:10.9.0 - commands: - # - yarn install - - pwd - - - # testing: - # image: node:10.9.0 - # group: testing - # commands: - # - yarn run test - - scp: - image: appleboy/drone-scp - pull: true - host: - - 139.162.9.68 - port: 22 - username: root - user: root - secrets: [ ssh_password ] - target: /root - source: - - /drone/src/github.com/horsekitlin/goodfood_admin - when: - branch: develop +pipeline: + install: + image: node:10.9.0 + commands: + # - yarn install + - pwd - ssh: - image: appleboy/drone-ssh - host: - - 139.162.9.68 + + # testing: + # image: node:10.9.0 + # group: testing + # commands: + # - yarn run test + + scp: + image: appleboy/drone-scp + pull: true + host: + - 139.162.9.68 + port: 22 + username: root + user: root + secrets: [ ssh_password ] + target: /root + source: + - /drone/src/github.com/horsekitlin/goodfood_admin + when: + branch: develop + + ssh: + image: appleboy/drone-ssh + host: + - 139.162.9.68 username: root user: root secrets: [ ssh_password ] @@ -38,12 +38,11 @@ script: - . /root/.nvm/nvm.sh && nvm use 10.9.0 - mkdir -p /var/www/html/goodfood.tomaslin.com.tw - - cd /root/drone/src/github.com/horsekitlin/goodfood_admin/ - - yarn install - - yarn build - - cp -a build/* /var/www/html/goodfood.tomaslin.com.tw - - cd /root - - rm -rf /root/drone - - when: - branch: develop \ No newline at end of file + - cd /root/drone/src/github.com/horsekitlin/goodfood_admin/ + - yarn install + - yarn build + - cp -a build/* /var/www/html/goodfood.tomaslin.com.tw + - cd /root + - rm -rf /root/drone + when: + branch: develop \ No newline at end of file