Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
77 righe
1.8 KiB
77 righe
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 |