-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
63 lines (57 loc) · 1.52 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
pipeline:
test:
image: node
environment:
NODE_PATH: src
commands:
- npm install --quiet
- npm test
when:
branch: master
event: pull_request
code-analysis:
image: ypcloud/sonar-runner
host: "https://sonar.devheaven.nl"
sources: "./src"
profile: "Sonar way"
secrets: [ sonar_login, sonar_password ]
when:
branch: master
event: pull_request
publish-staging:
image: plugins/docker
repo: devheavenci/task-management-service
tags: "${DRONE_COMMIT_SHA:0:8}"
secrets: [ docker_username, docker_password ]
when:
branch: master
event: push
publish-production:
image: plugins/docker
repo: devheavenci/task-management-service
tags: "${DRONE_TAG##v}"
secrets: [ docker_username, docker_password ]
when:
event: tag
deploy-staging:
image: quay.io/honestbee/drone-kubernetes
namespace: staging
deployment: task-management-deployment
repo: devheavenci/task-management-service
container: task-management
tag: "${DRONE_COMMIT_SHA:0:8}"
secrets: [ kubernetes_server, kubernetes_token, kubernetes_cert ]
when:
branch: master
event: push
deploy-production:
image: quay.io/honestbee/drone-kubernetes
namespace: production
deployment: task-management-deployment
repo: devheavenci/task-management-service
container: task-management
tag: "${DRONE_TAG##v}"
secrets: [ kubernetes_server, kubernetes_token ]
when:
event: tag
branches: master