Skip to content
17 changes: 8 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ pipeline:
# - yarn install
- pwd

testing:
image: node:10.9.0
group: testing
commands:
- yarn install
- yarn run test --all

# testing:
# image: node:10.9.0
# group: testing
# commands:
# - yarn run test

scp:
image: appleboy/drone-scp
Expand All @@ -26,7 +26,7 @@ pipeline:
- /drone/src/github.com/horsekitlin/goodfood_admin
when:
branch: develop
status: [ suucess ]

ssh:
image: appleboy/drone-ssh
host:
Expand All @@ -44,6 +44,5 @@ pipeline:
- cp -a build/* /var/www/html/goodfood.tomaslin.com.tw
- cd /root
- rm -rf /root/drone

when:
branch: develop
branch: develop