forked from redpencilio/fragmentation-producer-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
61 lines (60 loc) · 1.28 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
kind: pipeline
type: docker
name: push-latest
steps:
- name: build-and-push
image: plugins/docker
settings:
repo: ${DRONE_REPO_NAMESPACE/redpencilio/redpencil}/${DRONE_REPO_NAME%-service}
username:
from_secret: docker_username
password:
from_secret: docker_password
trigger:
branch:
- master
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/redpencilio/redpencil}/${DRONE_REPO_NAME%-service}
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/redpencilio/redpencil}/${DRONE_REPO_NAME%-service}
dry_run: true
trigger:
event:
- pull_request
---
kind: secret
name: docker_username
data: +Ebu7gP0lghFPQAAr05YnknAyoHS7oLslRDR6X/XVBLj/2k=
---
kind: secret
name: docker_password
data: nNnJCFUUlYqm8GxJGkBGSNNqA0BkZmVOhcvrXYajczeA4a7Zf+Jn+UgHNtrR4i9n11zLRmq4tg0qvMZAb1ox7Q==
---
kind: signature
hmac: cb6ff84ba16f8a24525ebf74547c7c4f95660c1367caff9d60596a2719117a6c
...