forked from americT/drone-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
54 lines (47 loc) · 1.32 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
workspace:
base: /go
pipeline:
test:
image: golang:1.6
environment:
- CGO_ENABLED=0
commands:
- go get
- go test -cover -coverprofile=coverage.out
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
build_docker_image:
image: docker:1.12
environment:
- DOCKER_HOST=tcp://127.0.0.1:2375
- TAG=${DRONE_BRANCH}-${DRONE_COMMIT_SHA:0:7}
commands:
- docker login -u="${QUAY_USERNAME}" -p="${QUAY_PASSWORD}" quay.io
- docker build -t image .
- docker tag image quay.io/ipedrazas/drone-helm:latest
- docker tag image quay.io/ipedrazas/drone-helm:${TAG}
- docker push quay.io/ipedrazas/drone-helm
# when:
# event: [push]
# branch: [master]
slack:
image: plugins/slack
channel: deploys
username: drone
template: >
{{ build.author }} finished building *<http://drone.sohohousedigital.com/SohoHouse/{{ repo.name }}/{{ build.number }}|{{ build.branch }} ({{ build.number }})>* of {{ repo.name }} with a {{ build.status }} status
services:
dind:
image: docker:1.12-dind
privileged: true
command:
- "-s"
- "overlay"
plugin:
name: drone-helm
desc: Execute helm to
type: deploy
image: quay.io/ipedrazas/drone-helm
labels:
- deploy
- kubernetes
- helm