@@ -2,20 +2,20 @@ workspace:
2
2
base : /srv/app
3
3
path : src/code.gitea.io/gitea
4
4
5
- pipeline :
6
- clone :
7
- image : plugins/git
5
+ clone :
6
+ git :
7
+ image : plugins/git:1
8
8
depth : 50
9
9
tags : true
10
10
11
+ pipeline :
11
12
build :
12
13
image : webhippie/golang:edge
13
14
pull : true
14
15
environment :
15
16
TAGS : bindata sqlite
16
17
GOPATH : /srv/app
17
18
commands :
18
- - apk -U add openssh-client
19
19
- make clean
20
20
- make generate
21
21
- make vet
@@ -30,43 +30,31 @@ pipeline:
30
30
test :
31
31
image : webhippie/golang:edge
32
32
pull : true
33
+ group : test
33
34
environment :
34
35
TAGS : bindata sqlite
35
36
GOPATH : /srv/app
36
37
commands :
37
- - apk -U add openssh-client
38
- - make test
39
- when :
40
- event : [ tag, pull_request ]
41
-
42
- test-coverage :
43
- image : webhippie/golang:edge
44
- pull : true
45
- environment :
46
- TAGS : bindata sqlite
47
- GOPATH : /srv/app
48
- commands :
49
- - apk -U add openssh-client
50
- - go get github.com/wadey/gocovmerge
51
- - make test-coverage
38
+ - make coverage
52
39
when :
53
- event : [ push ]
54
- branch : master
40
+ event : [ push, tag, pull_request ]
55
41
56
42
test-sqlite :
57
43
image : webhippie/golang:edge
58
44
pull : true
45
+ group : test
59
46
environment :
60
47
TAGS : bindata
61
48
GOPATH : /srv/app
62
49
commands :
63
- - echo "Needs to be fixed" # make test-sqlite
50
+ - make test-sqlite
64
51
when :
65
52
event : [ push, tag, pull_request ]
66
53
67
54
test-mysql :
68
55
image : webhippie/golang:edge
69
56
pull : true
57
+ group : test
70
58
environment :
71
59
TAGS : bindata
72
60
GOPATH : /srv/app
@@ -78,6 +66,7 @@ pipeline:
78
66
test-pgsql :
79
67
image : webhippie/golang:edge
80
68
pull : true
69
+ group : test
81
70
environment :
82
71
TAGS : bindata
83
72
GOPATH : /srv/app
@@ -86,6 +75,12 @@ pipeline:
86
75
when :
87
76
event : [ push, tag, pull_request ]
88
77
78
+ # coverage:
79
+ # image: plugins/coverage:latest
80
+ # pull: true
81
+ # secrets: [ github_token ]
82
+ # server: https://coverage.gitea.io
83
+
89
84
static :
90
85
image : karalabe/xgo-latest:latest
91
86
pull : true
@@ -97,42 +92,41 @@ pipeline:
97
92
when :
98
93
event : [ push, tag ]
99
94
100
- # coverage:
101
- # image: plugins/coverage
102
- # server: https://coverage.gitea.io
103
- # when:
104
- # event: [ push ]
105
- # branch: master
106
-
107
95
docker :
108
- image : plugins/docker
96
+ image : plugins/docker:17.05
109
97
pull : true
98
+ secrets : [ docker_username, docker_password ]
110
99
repo : gitea/gitea
111
100
tags : [ '${DRONE_TAG##v}' ]
112
101
when :
113
102
event : [ tag ]
114
103
branch : [ refs/tags/* ]
115
104
116
105
docker :
117
- image : plugins/docker
106
+ image : plugins/docker:17.05
118
107
pull : true
108
+ secrets : [ docker_username, docker_password ]
119
109
repo : gitea/gitea
120
110
tags : [ '${DRONE_BRANCH##release/v}' ]
121
111
when :
122
112
event : [ push ]
123
113
branch : [ release/* ]
124
114
125
115
docker :
126
- image : plugins/docker
116
+ image : plugins/docker:17.05
127
117
pull : true
118
+ secrets : [ docker_username, docker_password ]
128
119
repo : gitea/gitea
129
120
tags : [ 'latest' ]
130
121
when :
131
122
event : [ push ]
132
123
branch : [ master ]
133
124
134
125
release :
135
- image : plugins/s3
126
+ image : plugins/s3:1
127
+ pull : true
128
+ secrets : [ s3_access_key, s3_secret_key ]
129
+ endpoint : https://storage.gitea.io
136
130
path_style : true
137
131
strip_prefix : dist/release/
138
132
source : dist/release/*
@@ -142,7 +136,10 @@ pipeline:
142
136
branch : [ refs/tags/* ]
143
137
144
138
release :
145
- image : plugins/s3
139
+ image : plugins/s3:1
140
+ pull : true
141
+ secrets : [ s3_access_key, s3_secret_key ]
142
+ endpoint : https://storage.gitea.io
146
143
path_style : true
147
144
strip_prefix : dist/release/
148
145
source : dist/release/*
@@ -152,7 +149,10 @@ pipeline:
152
149
branch : [ release/* ]
153
150
154
151
release :
155
- image : plugins/s3
152
+ image : plugins/s3:1
153
+ pull : true
154
+ secrets : [ s3_access_key, s3_secret_key ]
155
+ endpoint : https://storage.gitea.io
156
156
path_style : true
157
157
strip_prefix : dist/release/
158
158
source : dist/release/*
@@ -162,17 +162,18 @@ pipeline:
162
162
branch : [ master ]
163
163
164
164
github :
165
- image : plugins/github-release
165
+ image : plugins/github-release:1
166
+ pull : true
166
167
files :
167
168
- dist/release/*
168
169
when :
169
170
event : [ tag ]
170
171
branch : [ refs/tags/* ]
171
172
172
173
discord :
173
- image : appleboy/drone-discord:0 .0.4
174
- webhook_id : ${WEBHOOK_ID}
175
- webhook_token : ${WEBHOOK_TOKEN}
174
+ image : appleboy/drone-discord:1 .0.0
175
+ pull : true
176
+ secrets : [ discord_webhook_id, discord_webhook_token ]
176
177
when :
177
178
event : [ push, tag, pull_request ]
178
179
status : [ changed, failure ]
0 commit comments