-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
60 lines (57 loc) · 1.3 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
---
kind: pipeline
name: pipeline
type: docker
steps:
- name: build and publish
image: plugins/docker
settings:
repo:
from_secret: docker_repository
tags:
- ${DRONE_BRANCH}
dockerfile: Dockerfile.prod
custom_dns: ['192.168.8.5', '192.168.8.6']
registry:
from_secret: docker_registry
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
status: [ success ]
branch: [ master ]
- name: build and publish release
image: plugins/docker
custom_dns: ['192.168.8.5', '192.168.8.6']
settings:
repo:
from_secret: docker_repository
tags: ${DRONE_TAG}
registry:
from_secret: docker_registry
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
status: [ success ]
branch: [ master ]
event:
- tag
- name: rollout
image: quving/drone-rancher-cicd:v1.1.0
settings:
stamp: ${DRONE_COMMIT}
kubectl_options: '--insecure-skip-tls-verify'
kubernetes_deployment: 'functionalscope'
kubernetes_namespace: 'master'
rancher_url:
from_secret: rancher_url
rancher_token:
from_secret: rancher_token
rancher_context:
from_secret: rancher_context
when:
status: [ success ]
branch: [ master ]