@@ -121,7 +121,7 @@ local Pipeline(branch, platform, event) = {
121
121
status: ['success' , 'failure' ],
122
122
},
123
123
},
124
- regressionlog: {
124
+ regressionlog:: {
125
125
name: 'regressionlog' ,
126
126
image: 'docker' ,
127
127
volumes: [pipeline._volumes.docker],
@@ -137,6 +137,47 @@ local Pipeline(branch, platform, event) = {
137
137
status: ['success' , 'failure' ],
138
138
},
139
139
},
140
+ dockerfile:: {
141
+ name: 'dockerfile' ,
142
+ image: 'docker:git' ,
143
+ volumes: [pipeline._volumes.docker],
144
+ commands: [
145
+ 'git clone --depth 1 https://github.com/mariadb-corporation/mariadb-community-columnstore-docker.git' ,
146
+ 'cd mariadb-community-columnstore-docker' ,
147
+ 'apk add --no-cache patch' ,
148
+ 'patch Dockerfile ../Dockerfile.patch' ,
149
+ 'cp ../result/MariaDB-common-10* ../result/MariaDB-client-10* ../result/MariaDB-server-10* ../result/MariaDB-shared-10* ../result/MariaDB-columnstore-engine-10* ./' ,
150
+ ],
151
+ },
152
+ ecr:: {
153
+ name: 'ecr' ,
154
+ image: 'plugins/ecr' ,
155
+ settings: {
156
+ registry: '866067714787.dkr.ecr.us-east-1.amazonaws.com' ,
157
+ repo: 'columnstore' ,
158
+ create_repository: 'true' ,
159
+ context: 'mariadb-community-columnstore-docker' ,
160
+ access_key: {
161
+ from_secret: 'ecr_access_key' ,
162
+ },
163
+ secret_key: {
164
+ from_secret: 'ecr_secret_key'
165
+ },
166
+ },
167
+ },
168
+ docker:: {
169
+ name: 'docker' ,
170
+ image: 'plugins/docker' ,
171
+ settings: {
172
+ repo: 'romcheck/columnstore' ,
173
+ context: '/drone/src/mariadb-community-columnstore-docker' ,
174
+ dockerfile: '/drone/src/mariadb-community-columnstore-docker/Dockerfile' ,
175
+ username: 'romcheck' ,
176
+ password: {
177
+ from_secret: 'dockerhub_token' ,
178
+ }
179
+ },
180
+ },
140
181
kind: 'pipeline' ,
141
182
type: 'docker' ,
142
183
name: std.join (' ' , [branch, platform, event]),
@@ -229,6 +270,9 @@ local Pipeline(branch, platform, event) = {
229
270
},
230
271
},
231
272
] +
273
+ (if (platform == 'centos:8' && event == 'cron' ) then [pipeline.dockerfile] else []) +
274
+ (if (platform == 'centos:8' && event == 'cron' ) then [pipeline.docker] else []) +
275
+ // (if (platform == 'centos:8' && event == 'cron') then [pipeline.ecr] else []) +
232
276
(if branch == 'develop' then [pipeline.smoke] else []) +
233
277
(if branch == 'develop' then [pipeline.smokelog] else []) +
234
278
(if branch == 'develop' then [pipeline.regression] else []) +
0 commit comments