Updating drone config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Brandon Watson 2021-06-07 20:03:41 -04:00
parent b6d9317a1e
commit 6c8ce21164
3 changed files with 27 additions and 23 deletions

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
}
}