forked from mu-semtech/mu-authorization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
99 lines (98 loc) · 2.03 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
kind: pipeline
type: docker
name: push-latest
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build-and-push
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/${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: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: push-feature-build
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/${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: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build-and-push-tag
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/${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: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: dry-run
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/mu-semtech/semtech}/${DRONE_REPO_NAME}
dry_run: true
trigger:
event:
- pull_request
---
kind: secret
name: docker_username
data: 1/NnpJVaAj6pOTlePwqHygkheVsEXE6f1ZynUkCD3O852ubUqoxH
---
kind: secret
name: docker_password
data: Iq2X6WmmnD3KSn4Rko/JxgiuGbFLYLhU82dW3PO4plpE4I4dk/zzxjSlf6Im8XLZ3t/2heY56fXqKSoQg0L0kg==
---
kind: signature
hmac: 4ca929e87b549858dcbcee656676260f3c8ebaf452c1723f10336f79be0860c1
...