-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy path.drone.yml
95 lines (83 loc) · 1.6 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
kind: pipeline
type: docker
name: helm-lint
# Use docker:dind for running kind
services:
- name: kubernetes
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
- name: kubeconfig
temp: {}
steps:
- name: wait for docker
image: alpine
commands:
- sleep 5
- name: create kind cluster
image: otwld/drone-kind
settings:
verbose: 1
cluster_name: "kind-default"
hostname: "kubernetes" # Use same name as service`s name
config: 'kind-config.yml'
volumes:
- name: dockersock
path: /var/run
- name: kubeconfig
path: /root/.kube
depends_on:
- wait for docker
- name: lint & install chart
image: quay.io/helmpack/chart-testing
commands:
- ct lint-and-install --chart-dirs . --charts .
depends_on:
- create kind cluster
volumes:
- name: kubeconfig
path: /root/.kube
- name: delete kind cluster
image: otwld/drone-kind
settings:
clean_only: true
volumes:
- name: dockersock
path: /var/run
- name: kubeconfig
path: /root/.kube
when:
status:
- success
- failure
depends_on:
- lint & install chart
trigger:
event:
- push
- pull_request
- custom
branch:
- main
---
kind: pipeline
type: docker
name: publish
trigger:
event:
- promote
branch:
- main
steps:
- name: publish helm chart to github pages
image: otwld/drone-chart-releaser-github-pages
settings:
cr_token:
from_secret: github_access_token
skip_existing: true
root_package: true