/
.drone.yml
61 lines (56 loc) · 1.09 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
---
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:
- ./install.sh
- ./setup.sh
- kubectl get nodes
volumes:
- name: dockersock
path: /var/run
- name: kubeconfig
path: /mnt/config
when:
event:
- push
- name: test
image: alpine:latest
pull: always
depends_on: [ setup ]
environment:
KUBECONFIG: /mnt/config/admin.conf
commands:
- ./install.sh
- helm repo add eos https://registry.cern.ch/chartrepo/eos
- helm repo update
- helm install eos eos/server --version 0.0.1 --wait
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: {}