homebridge-harmony-control/.drone.yml

42 lines
774 B
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-03 01:14:12 +00:00
- name: publish
image: plugins/npm
settings:
username: admin
password:
from_secret: npm_password
email: brandon@watsonlabs.net
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]