No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
di/.drone.yml

77 líneas
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