asyncapi/.drone.yml

35 lines
819 B
YAML
Raw Normal View History

2020-07-06 16:09:50 +02:00
kind: pipeline
type: docker
name: default
2020-07-07 00:39:36 +02:00
steps:
2020-07-06 16:09:50 +02:00
- name: build_html
2020-07-18 14:44:58 +02:00
image: node:lts
2020-07-18 14:58:18 +02:00
# This is hacky and ugly as fuck, but without it node fails to install a dependency. Fuck node.
2020-07-06 16:09:50 +02:00
commands:
2020-07-18 14:58:18 +02:00
- npm install -g @asyncapi/generator || true
- chown -R 65534:0 "/root/.npm"
2020-07-06 16:09:50 +02:00
- npm install -g @asyncapi/generator
2020-07-18 15:02:42 +02:00
- chown -R root:root /root/.npm
2020-07-06 16:09:50 +02:00
- ag birbnetes.yml @asyncapi/html-template
- name: kaniko
image: banzaicloud/drone-kaniko
settings:
registry: registry.kmlabz.com
repo: birbnetes/${DRONE_REPO_NAME}
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
tags:
- latest
- ${DRONE_BUILD_NUMBER}
- name: ms-teams
image: kuperiu/drone-teams
settings:
webhook:
from_secret: TEAMS_WEBHOOK
when:
status: [ failure ]