-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
93 lines (83 loc) · 1.5 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
---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: build
image: rancher/dapper:v0.6.0
environment:
OAUTH_TOKEN:
from_secret: github_token
privileged: true
commands:
- dapper ci
- bin/authtool --version
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- push
- pull_request
volumes:
- name: docker
host:
path: /var/run/docker.sock
trigger:
event:
exclude:
- tag
node:
instance: agent-amd64
---
kind: pipeline
type: docker
name: package
platform:
os: linux
arch: amd64
steps:
- name: build
image: rancher/dapper:v0.6.0
environment:
OAUTH_TOKEN:
from_secret: github_token
privileged: true
commands:
- dapper ci
volumes:
- name: docker
path: /var/run/docker.sock
- name: docker-publish
image: plugins/docker
settings:
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: cnrancher/authtool
tag: "${DRONE_TAG}"
username:
from_secret: docker_username
- name: github_binary_release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
prerelease: true
checksum:
- sha256
files:
- "bin/authtool"
volumes:
- name: docker
host:
path: /var/run/docker.sock
trigger:
event:
include:
- tag
node:
instance: agent-amd64