homebridge-harmony-control/.drone.yml

65 lines
1.3 KiB
YAML
Raw Normal View History

2021-05-31 23:15:28 +00:00
kind: pipeline
type: docker
name: default
2021-05-31 23:36:50 +00:00
clone:
disable: true
2021-05-31 23:15:28 +00:00
steps:
2021-05-31 23:32:06 +00:00
- name: clone
image: alpine/git
commands:
2021-05-31 23:32:58 +00:00
- git clone https://gitea.watsonlabs.net/watsonb8/homebridge-harmony-control.git .
2021-05-31 23:32:06 +00:00
- git checkout $DRONE_COMMIT
2021-05-31 23:15:28 +00:00
- name: build
image: node
commands:
- npm install
- npm run build
2021-06-03 00:54:21 +00:00
2021-06-08 00:03:41 +00:00
- name: version
image: node
commands:
- export version=`node -p "require('./package.json').version"`
- npm version prerelease --preid=`$DRONE_COMMIT | cut -c1-5` --git-tag-version=false --allow-same-version=true
2021-06-08 00:03:41 +00:00
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
2021-06-03 01:14:12 +00:00
- name: publish
image: plugins/npm
settings:
username: admin
password:
from_secret: npm_password
email: brandon@watsonlabs.net
2021-06-03 01:23:46 +00:00
registry: "http://linuxhost.me:4873/"
2021-06-03 00:54:21 +00:00
when:
event:
- tag
2021-06-03 01:20:09 +00:00
notify:
image: drillster/drone-email
host: smtp.watsonlabs.net
username: srvGitea
password:
from_secret: smtp_password
from: drone@watsonlabs.net
when:
status: [failure]