forked from uswitch/kiam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
executable file
·66 lines (59 loc) · 1.29 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
workspace:
base: /go
path: src/github.com/uswitch/kiam
pipeline:
test:
secrets: [ codecov_token ]
image: golang:1.13
environment:
GO111MODULE: "on"
commands:
- make test
- make coverage.txt
- ./ci/codecov.sh
benchmarks:
image: golang:1.13
environment:
GO111MODULE: "on"
commands:
- make bench
helm-test-v2:
image: alpine/helm:2.14.3
commands:
- helm lint helm/kiam
- helm template helm/kiam
helm-test-v3:
image: alpine/helm:3.0.2
commands:
- helm lint helm/kiam
- helm template helm/kiam
docker:
when:
event: push
image: plugins/docker
registry: quay.io
repo: quay.io/uswitch/kiam
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_COMMIT_SHA}
- ${DRONE_COMMIT_BRANCH}
docker-tagged:
when:
event: tag
image: plugins/docker
repo: quay.io/uswitch/kiam
registry: quay.io
secrets: [ docker_username, docker_password ]
tags:
- ${DRONE_TAG}
helm-package:
image: alpine/helm:2.14.3
environment:
APP: kiam
REPO: github.com/uswitch/kiam-helm-charts.git
secrets: [ ci_user, ci_token, ci_email ]
commands:
sh ci/helm-package.sh
when:
event: push
branch: master