2021-06-03 02:09:58 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: clone
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git clone https://gitea.watsonlabs.net/watsonb8/homebridge-face-location.git .
|
|
|
|
- git checkout $DRONE_COMMIT
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- npm install
|
|
|
|
- npm run build
|
|
|
|
|
|
|
|
- name: publish
|
2022-09-06 13:53:38 +00:00
|
|
|
image: plugins/npm:1.0.0
|
2021-06-03 02:09:58 +00:00
|
|
|
settings:
|
|
|
|
username: admin
|
|
|
|
password:
|
|
|
|
from_secret: npm_password
|
|
|
|
email: brandon@watsonlabs.net
|
|
|
|
registry: "http://linuxhost.me:4873/"
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
notify:
|
|
|
|
image: drillster/drone-email
|
|
|
|
host: smtp.watsonlabs.net
|
|
|
|
username: srvGitea
|
|
|
|
password:
|
|
|
|
from_secret: smtp_password
|
|
|
|
from: drone@watsonlabs.net
|
|
|
|
when:
|
|
|
|
status: [failure]
|