Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update drone #21

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
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