@@ -46,12 +46,17 @@ commands:
46
46
no_output_timeout : 20m
47
47
- run :
48
48
name : Package
49
- command : make -C opt pack SHOW=1
49
+ command : |
50
+ make -C opt pack SHOW=1
51
+ (cd bin/artifacts; tar -cf snapshots-<<parameters.platform>>.tar snapshots/)
50
52
- persist_to_workspace :
51
53
root : bin/
52
54
paths :
53
55
- artifacts/*.zip
54
56
- artifacts/*.tgz
57
+ - artifacts/*.tar
58
+ # - artifacts/shapshots/*.zip
59
+ # - artifacts/shapshots/*.tgz
55
60
- store_artifacts :
56
61
path : test/logs
57
62
@@ -71,16 +76,27 @@ commands:
71
76
name : Build for platform
72
77
command : |
73
78
docker login -u redisfab -p $DOCKER_REDISFAB_PWD
74
- cd opt/build/docker
79
+ pushd opt/build/docker
75
80
#@@ make build publish $(./version-params) CPU=1 OSNICK=<<parameters.platform>> X64=1 ARTIFACTS=1 TEST=1 VERBOSE=1
76
81
make build publish $(./version-params) CPU=1 OSNICK=<<parameters.platform>> X64=1 ARTIFACTS=1 VERBOSE=1
77
82
make build publish $(./version-params) GPU=1 OSNICK=<<parameters.platform>> X64=1 ARTIFACTS=1 VERBOSE=1
83
+ popd > /dev/null
84
+ logstar=bin/artifacts/tests-logs-cpu.tgz
85
+ logsdir=tests/logs/cpu
86
+ mkdir -p $logsdir
87
+ if [[ -e $logstar ]]; then tar -C $logsdir -xzf $logstar; fi
88
+ (cd bin/artifacts; tar -cf snapshots-<<parameters.platform>>.tar snapshots/)
78
89
no_output_timeout : 40m
79
90
- persist_to_workspace :
80
91
root : bin/
81
92
paths :
82
93
- artifacts/*.zip
83
94
- artifacts/*.tgz
95
+ - artifacts/*.tar
96
+ # - artifacts/shapshots/*.zip
97
+ # - artifacts/shapshots/*.tgz
98
+ - store_artifacts :
99
+ path : test/logs
84
100
85
101
deploy-steps :
86
102
parameters :
@@ -202,11 +218,11 @@ jobs:
202
218
docker run --gpus all -v $HOME/tests:/build/test/logs -it --rm redisai-gpu:latest-x64-bionic-test
203
219
no_output_timeout : 40m
204
220
- store_artifacts :
205
- path : tests
221
+ path : test/log
206
222
207
223
deploy-artifacts :
208
224
parameters :
209
- package :
225
+ location :
210
226
type : string
211
227
docker :
212
228
- image : redisfab/rmbuilder:6.0.5-x64-buster
@@ -216,8 +232,42 @@ jobs:
216
232
- run :
217
233
name : Deploy to S3
218
234
command : |
219
- cd workspace
220
- aws s3 cp artifacts/ s3://redismodules/$PACKAGE_NAME/ --acl public-read --recursive --exclude "*" --include "*.zip" --include "*.tgz"
235
+ cd "workspace/artifacts/<<parameters.location>>"
236
+ for f in *.zip snapshot/*.tgz; do
237
+ aws s3 cp $f s3://redismodules/$PACKAGE_NAME/<<parameters.location>>/ --acl public-read
238
+ done
239
+
240
+ deploy-snapshot :
241
+ docker :
242
+ - image : redisfab/rmbuilder:6.0.5-x64-buster
243
+ steps :
244
+ - attach_workspace :
245
+ at : workspace
246
+ - run :
247
+ name : Deploy Snapshots to S3
248
+ command : |
249
+ cd workspace/artifacts
250
+ for f in snapshots-*.tar; do
251
+ tar xf $f
252
+ done
253
+ cd snapshots
254
+ for f in *.zip *.tgz; do
255
+ aws s3 cp --no-progress $f s3://redismodules/$PACKAGE_NAME/snapshots/ --acl public-read
256
+ done
257
+
258
+ deploy-release :
259
+ docker :
260
+ - image : redisfab/rmbuilder:6.0.5-x64-buster
261
+ steps :
262
+ - attach_workspace :
263
+ at : workspace
264
+ - run :
265
+ name : Deploy Releases to S3
266
+ command : |
267
+ cd workspace/artifacts
268
+ for f in *.zip *.tgz; do
269
+ aws s3 cp --no-progress $f s3://redismodules/$PACKAGE_NAME/ --acl public-read
270
+ done
221
271
222
272
223
273
on-any-branch : &on-any-branch
@@ -296,14 +346,10 @@ workflows:
296
346
- build-multiarch-docker :
297
347
<< : *never # temporarily disabled
298
348
# <<: *on-version-tags
299
- - deploy-artifacts :
300
- name : deploy-branch
301
- package : branch
349
+ - deploy-snapshot :
302
350
<< : *after-platform-builds
303
- << : *on-any-branch
304
- - deploy-artifacts :
305
- name : deploy-release
306
- package : release
351
+ << : *on-master
352
+ - deploy-release :
307
353
<< : *after-platform-builds
308
354
<< : *on-version-tags
309
355
0 commit comments