feature/drone #5

Closed
watsonb8 wants to merge 14 commits from feature/drone into master
3 changed files with 27 additions and 23 deletions
Showing only changes of commit 6c8ce21164 - Show all commits

View File

@ -18,6 +18,29 @@ steps:
- npm install
- npm run build
- name: version
image: node
commands:
- export version=`node -p "require('./package.json').version"`
- npm version $version --preid=pre --commit-hooks=false --git-tag-version=false --allow-same-version=true
when:
event:
exclude:
- tag
- name: publish pre
image: plugins/npm
settings:
username: admin
password:
from_secret: npm_password
email: brandon@watsonlabs.net
registry: "http://linuxhost.me:4873/"
when:
event:
exclude:
- tag
- name: publish
image: plugins/npm
settings:

View File

@ -1,22 +0,0 @@
#!/bin/bash
remote_user="bmw"
remote_server="linuxhost.me"
deploy_location="/home/bmw/homebridge-harmony-control"
homebridge_location="/var/lib/homebridge/"
#build
tsc --build
#copy files to remote machine
scp -r bin $remote_user@$remote_server:$deploy_location
scp package.json $remote_user@$remote_server:$deploy_location
#install package
ssh -t $remote_user@$remote_server "sudo npm install -g --unsafe-perm $deploy_location"
#restart service
ssh -t
ssh -t $remote_user@$remote_server "sudo systemctl restart homebridge.service"
ssh -t $remote_user@$remote_server "sudo systemctl status homebridge.service"
echo done
exit

View File

@ -3,5 +3,8 @@
{
"path": "."
}
]
],
"settings": {
"editor.tabSize": 2
}
}