-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.drone.yml
83 lines (82 loc) · 1.67 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
kind: pipeline
type: docker
name: push-latest
steps:
- name: build-and-push
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/mu-${DRONE_REPO_NAME}
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
branch:
- master
event:
exclude:
- pull_request
---
kind: pipeline
type: docker
name: push-feature-build
steps:
- name: push-feature-build
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/mu-${DRONE_REPO_NAME}
tags: ${DRONE_BRANCH/\//-}
username:
from_secret: docker_username
password:
from_secret: docker_password
purge: true
trigger:
branch:
- "*/*"
event:
exclude:
- pull_request
---
kind: pipeline
type: docker
name: push-release
steps:
- name: build-and-push-tag
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/mu-${DRONE_REPO_NAME}
tags: ${DRONE_TAG##v} # strips v from the tag
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
event:
- tag
---
kind: pipeline
type: docker
name: dry-run
steps:
- name: dry-run
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/mu-${DRONE_REPO_NAME}
dry_run: true
trigger:
event:
- pull_request
---
kind: secret
name: docker_username
data: JC/sWINTny4ycNnQc8NFh8oObFbj6x3exzazY5aBmB2W7P8Nm+1C
---
kind: secret
name: docker_password
data: 3yHEDnppaM71XZuW1iFUYMOb9b6zv0jDFPWoPZxB64cCZb8I9JavZ2k19WFehclekxk/bMT7DoUDwl7LwZRRJA==
---
kind: signature
hmac: 20d6e08720a894e9d056bbf43f037015d9686c23a362bc0e6481c30a4577246b
...