-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
66 lines (64 loc) · 1.33 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
---
kind: pipeline
type: docker
name: build-dry-run
steps:
- name: build-dry-run
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/redpencilio/redpencil}/${DRONE_REPO_NAME%-service}
dry_run: true
purge: true
trigger:
event:
- pull_request
---
kind: pipeline
type: docker
name: push-latest-build
steps:
- name: push-latest-build
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/redpencilio/redpencil}/${DRONE_REPO_NAME%-service}
username:
from_secret: docker_username
password:
from_secret: docker_password
purge: true
trigger:
branch:
- master
event:
exclude:
- pull_request
---
kind: pipeline
type: docker
name: release
steps:
- name: push-tagged-build
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/redpencilio/redpencil}/${DRONE_REPO_NAME%-service}
tags: ${DRONE_TAG##v}
username:
from_secret: docker_username
password:
from_secret: docker_password
purge: true
trigger:
event:
- tag
---
kind: secret
name: docker_username
data: AMvGJid/ng9JiiDyB085NJ2AbJgrdEBHO1VZtTSVgKvvO1w4UW/F
---
kind: secret
name: docker_password
data: +72RVc0xlwUDgr0x5JzILUuMr4E2e0xesrTd9EmnHxFEfsXd/m+cWsIKC6xvy4mdDIE9cLaA3gGvRa5UtGtPqw==
---
kind: signature
hmac: d91a987bae5ac5c74b37f5b11e1568e4d511c725ad12d593a22c54e204be79fe
...