@@ -9,7 +9,7 @@ variables:
9
9
DOCKER_IMAGE : registry.git.rwth-aachen.de/acs/public/villas/node
10
10
DOCKER_IMAGE_DEV : registry.git.rwth-aachen.de/acs/public/villas/node/dev
11
11
MAKE_OPTS : -j32
12
- RELEASEVER : 29
12
+ RELEASEVER : ' 29 '
13
13
14
14
stages :
15
15
- prepare
@@ -221,28 +221,37 @@ packaging:rpm:
221
221
222
222
deploy:web :
223
223
stage : deploy
224
+ image :
225
+ name : rclone/rclone:1.50
226
+ entrypoint : [""]
227
+ before_script :
228
+ - rclone config create fein webdav url ${DEPLOY_PATH} vendor other user ${DEPLOY_USER} pass ${DEPLOY_PASS}
224
229
script :
225
- - ssh ${DEPLOY_USER}@${DEPLOY_HOST} mkdir -p ${DEPLOY_PATH}/{coverage,doc}/${CI_BUILD_REF_NAME}/
226
- - rsync ${RSYNC_OPTS} build/doc/html/ ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/doc/$CI_BUILD_REF_NAME/
227
- - rsync ${RSYNC_OPTS} web/ ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/
230
+ - rclone copy build/doc/html fein:villas/doc-dev/${CI_BUILD_REF_NAME}
228
231
dependencies :
229
232
- build:docs
230
233
only :
231
- - tags
234
+ # Only on version tags
235
+ - " /^v\\ d+(\\ .\\ d+)+$/"
232
236
tags :
233
- - villas-deploy
237
+ - docker
234
238
235
239
.deploy:packages : &deploy_packages
236
240
stage : deploy
241
+ image :
242
+ name : rclone/rclone:1.50
243
+ entrypoint : [""]
244
+ before_script :
245
+ - apk add curl
246
+ - rclone config create fein webdav url ${DEPLOY_PATH} vendor other user ${DEPLOY_USER} pass ${DEPLOY_PASS}
237
247
script :
238
- - ssh ${DEPLOY_USER}@${DEPLOY_HOST} mkdir -p $${DEPLOY_PATH_PACKAGES}/{fedora/x86_64,dist}
239
- - rsync ${RSYNC_OPTS} build/*.tar.gz ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH_PACKAGES}/dist/
240
- - rsync ${RSYNC_OPTS} build/*.rpm ${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH_PACKAGES}/fedora/${RELEASEVER}/x86_64
241
- - ssh ${DEPLOY_USER}@${DEPLOY_HOST} createrepo ${DEPLOY_PATH_PACKAGES}/fedora/${RELEASEVER}/x86_64
248
+ - rclone copy --max-depth 1 --include '*.tar.gz' build fein:packages/dist
249
+ - rclone copy --max-depth 1 --include '*.rpm' build fein:packages/fedora/${RELEASEVER}/x86_64
250
+ - curl -L --user ${DEPLOY_USER}:${DEPLOY_PASS} ${DEPLOY_PATH}/hooks/createrepo
242
251
dependencies :
243
252
- packaging:rpm
244
253
tags :
245
- - villas-deploy
254
+ - docker
246
255
247
256
deploy:packages:manual :
248
257
<< : *deploy_packages
@@ -257,7 +266,7 @@ deploy:packages:tags:
257
266
deploy:docker :
258
267
stage : deploy
259
268
before_script :
260
- - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $ CI_REGISTRY
269
+ - docker login -u ${ CI_REGISTRY_USER} -p ${ CI_REGISTRY_PASSWORD} ${ CI_REGISTRY}
261
270
script :
262
271
- docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
263
272
- docker push registry.git.rwth-aachen.de/acs/public/villas/node/dev:${DOCKER_TAG}
@@ -269,3 +278,6 @@ deploy:docker:
269
278
tags :
270
279
- shell
271
280
- linux
281
+ only :
282
+ # Only on version tags
283
+ - " /^v\\ d+(\\ .\\ d+)+$/"
0 commit comments