-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
66 lines (58 loc) · 1.46 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
kind: pipeline
type: kubernetes
name: build
steps:
- name: yarn build
image: node:16.17-alpine
commands:
- apk add git
- yarn config list
- yarn install --network-timeout 600000
- yarn run docs:build
- name: docker build & push
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: northes/apihut-docs
tags: dev-${DRONE_COMMIT_SHA:0:8}
trigger:
branch:
- dev
---
kind: pipeline
type: kubernetes
name: build && deploy
steps:
- name: yarn build
image: node:16.17-alpine
commands:
- apk add git
- yarn config list
- yarn install --network-timeout 600000
- yarn run docs:build
- name: docker build & push
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: northes/apihut-docs
tags: ${DRONE_TAG##v}
- name: "chart package"
image: alpine/helm:3.10.1
environment:
username:
from_secret: helm_username
password:
from_secret: helm_password
commands:
- helm repo add chartmuseum https://charts.northes.co --username=$username --password=$password
- helm plugin install https://github.com/chartmuseum/helm-push
- helm cm-push ./deploy/chart chartmuseum --version=${DRONE_TAG##v} --app-version=${DRONE_TAG##v}
trigger:
event:
- tag