-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yaml
56 lines (48 loc) · 981 Bytes
/
.drone.yaml
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
---
kind: pipeline
type: docker
name: Build FluentD Image
concurrency:
limit: 1
clone:
depth: 1
steps:
- name: docker build (${DRONE_BRANCH}-latest)
image: plugins/docker
settings:
mirror: dockerhub.nexus.diesel.net
registry: docker.nexus.diesel.net
username:
from_secret: nexus_user
password:
from_secret: nexus_pass
repo: docker.nexus.diesel.net/fluentd
tags:
- ${DRONE_BRANCH}-latest
when:
event:
- push
- name: docker build (${DRONE_TAG})
image: plugins/docker
settings:
mirror: dockerhub.nexus.diesel.net
registry: docker.nexus.diesel.net
username:
from_secret: nexus_user
password:
from_secret: nexus_pass
repo: docker.nexus.diesel.net/fluentd
tags:
- latest
- ${DRONE_TAG}
when:
event:
- tag
trigger:
branch:
- development
- stable
event:
- push
- tag
...