forked from kind-ci/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
60 lines (55 loc) · 1.07 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
---
kind: pipeline
name: test
platform:
os: linux
arch: amd64
steps:
- name: setup
image: docker:stable
pull: always
depends_on: [ clone ]
environment:
CLUSTER_HOST: docker
CLUSTER_NAME: kind-cluster
KUBECONFIG: /mnt/config/admin.conf
commands:
- ./drone/install.sh
- ./drone/setup.sh
- cp "$(kind get kubeconfig-path --name="$CLUSTER_NAME")" /mnt/config/admin.conf
- kubectl get nodes
volumes:
- name: dockersock
path: /var/run
- name: kubeconfig
path: /mnt/config
when:
event:
- push
- name: test
image: alpine:3.9
pull: always
depends_on: [ setup ]
environment:
KUBECONFIG: /mnt/config/admin.conf
commands:
- ./drone/install.sh
- kubectl get nodes
volumes:
- name: kubeconfig
path: /mnt/config
when:
event:
- push
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
- name: kubeconfig
temp: {}