You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

77 lines
1.8 KiB

kind: pipeline
name: default
steps:
- name: unit tests
image: node:12
commands:
- yarn install
- yarn run test_units
- name: integration tests
image: node:12
commands:
- yarn install
- yarn run test_integration
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_api_key
base_url: https://git.garrettmills.dev
title: ${DRONE_TAG}
when:
event: tag
- name: npm publish
image: plugins/npm
settings:
username:
from_secret: npm_username
password:
from_secret: npm_password
email:
from_secret: npm_email
when:
event: tag
- name: send success notifications
image: plugins/webhook
settings:
urls:
from_secret: notify_webhook_url
content_type: application/json
template: |
{
"title": "Drone-CI [flitter-di]",
"message": "Published release flitter-di@${DRONE_TAG} successfully.",
"priority": 4
}
when:
status: success
event: tag
- name: send error notifications
image: plugins/webhook
settings:
urls:
from_secret: notify_webhook_url
content_type: application/json
template: |
{
"title": "Drone-CI [flitter-di]",
"message": "An error was encountered while releasing flitter-di@${DRONE_TAG}.",
"priority": 6
}
when:
status: failure
event: tag
- name: promote Flitter docs
image: plugins/downstream
settings:
server: https://ci.garrettmills.dev
token:
from_secret: drone_token
fork: false
last_successful: true
deploy: production
repositories:
- flitter/docs@master
when:
status: success
event: tag