Add drone config
continuous-integration/drone/push Build is failing Details

r0.1.5
Garrett Mills 3 years ago
parent e772d12f20
commit e604b90d91
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -0,0 +1,54 @@
kind: pipeline
name: default
type: docker
steps:
- name: build module
image: glmdev/node-pnpm:latest
commands:
- pnpm i
- pnpm build
- tar czf build.tar.gz lib
- name: send build success notifications
image: plugins/webhook
settings:
urls:
from_secret: notify_webhook_url
content_type: application/json
template: |
{
"title": "Drone-CI [extollo/lib @ ${DRONE_BUILD_NUMBER}]",
"message": "Build completed successfully.",
"priority": 4
}
when:
status: success
- name: send build error notifications
image: plugins/webhook
settings:
urls:
from_secret: notify_webhook_url
content_type: application/json
template: |
{
"title": "Drone-CI [extollo/lib @ ${DRONE_BUILD_NUMBER}]",
"message": "Build failed!",
"priority": 6
}
when:
status: failure
- name: trigger documentation build
image: plugins/downstream
settings:
server: https://ci.garrettmills.dev
token:
from_secret: drone_token
fork: false
last_successful: true
deploy: production
repositories:
- Extollo/docs@master
when:
status: success
Loading…
Cancel
Save