Skip to content

Commit

Permalink
fix(drone): use bash to trigger standard-version
Browse files Browse the repository at this point in the history
  • Loading branch information
GimmyHchs committed May 27, 2018
1 parent e7fe403 commit deb9f86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,16 @@ pipeline:
- ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- echo -n "$SSH_KEY" > ~/.ssh/id_rsa && chmod 0600 ~/.ssh/id_rsa
- cd $DRONE_WORKSPACE/src
- standard-version
- git config --global user.email "drone@hchs-service.tk"
- git config --global user.name "drone"
- git remote set-url origin git@github.com:g9308370/cococharge.git
- git remote -v
- standard-version -m "chore(release) %s [SKIP CI]"
- git push --follow-tags origin ${DRONE_COMMIT_BRANCH}
when:
branch: [ master ]

publish_dockerhub:
publish-dockerhub:
image: plugins/docker
repo: hchstera/cococharge
dockerfile: ./src/Dockerfile
Expand All @@ -60,7 +64,6 @@ pipeline:
event: [ push ]
branch: [ master ]


deploy:
image: appleboy/drone-ssh
host: 209.97.168.149
Expand All @@ -84,7 +87,7 @@ pipeline:


## notifications
notify_line:
notify-line:
image: appleboy/drone-line
secrets: [ plugin_channel_secret, plugin_channel_token, plugin_to_group ]
when:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"laravel-mix": "^2.0",
"lodash": "^4.17.4",
"vue": "^2.5.7"
}
},
"version": "0.0.0"
}

0 comments on commit deb9f86

Please sign in to comment.