-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
65 lines (61 loc) · 1.49 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
build:
image: golang:1.6.1
environment:
- GOPATH=/guestbook-go
commands:
- cd _src/ && go get && go build -o ../bin/guestbook
- cd .. && cp _src/guestbook/Dockerfile .
branches:
- master
- staging
publish:
docker:
username: $$DOCKER_USERNAME
password: $$DOCKER_PASS
email: $$DOCKER_EMAIL
repo: numidiasoftvc/guestbook
tag:
- "latest"
- "$$BUILD_NUMBER"
file: Dockerfile
when:
branch: staging
deploy:
kubernetes:
image: quay.io/ukhomeofficedigital/drone-kubernetes:latest
registry: quay.io
replicationcontrollers:
- guestbook-controller.json
services:
- guestbook-service.json
token: eqpPIb5jFPUzurndqZrXFM9oW1VGusqY
apiserver: http://10.0.0.118:8080
namespace: default
debug: true
tag: v0.0.$$BUILD_NUMBER
when:
branch: master
kubernetes:
image: quay.io/ukhomeofficedigital/drone-kubernetes:latest
registry: quay.io
replicationcontrollers:
- guestbook-controller.json
services:
- guestbook-service.json
token: eqpPIb5jFPUzurndqZrXFM9oW1VGusqY
apiserver: http://10.0.0.118:8080
namespace: default
debug: true
tag: v0.0.$$BUILD_NUMBER
when:
branch: staging
notify:
slack:
webhook_url: $$SLACK_WEBHOOK
channel: ops-team
username: drone.io
debug: true
template: >
build #{{ build.number }} of {{build.branch}} branch finished with a {{ build.status }} status
when:
branch: [master, staging]