From 71235e1e2d624465ab80be0e6e6788f42cfb2190 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Thu, 10 Mar 2022 09:50:56 +0100 Subject: [PATCH 1/2] adapt new folder layout on the download mirror --- .drone.star | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.drone.star b/.drone.star index 7ac4513fe28..a5d726130ff 100644 --- a/.drone.star +++ b/.drone.star @@ -956,11 +956,16 @@ def binaryReleases(ctx): return pipelines def binaryRelease(ctx, name): - # uploads binary to https://download.owncloud.com/ocis/ocis/testing/ - target = "/ocis/%s/testing" % (ctx.repo.name.replace("ocis-", "")) + # uploads binary to https://download.owncloud.com/ocis/ocis/daily/ + target = "/ocis/%s/daily" % (ctx.repo.name.replace("ocis-", "")) if ctx.build.event == "tag": # uploads binary to eg. https://download.owncloud.com/ocis/ocis/1.0.0-beta9/ - target = "/ocis/%s/%s" % (ctx.repo.name.replace("ocis-", ""), ctx.build.ref.replace("refs/tags/v", "")) + folder = "stable" + buildref = ctx.build.ref.replace("refs/tags/v", "") + buildref = buildref.lower() + if buildref.find("-") != -1: # "x.x.x-alpha", "x.x.x-beta", "x.x.x-rc" + folder = "testing" + target = "/ocis/%s/%s/%s" % (ctx.repo.name.replace("ocis-", ""), folder, buildref) settings = { "endpoint": { From bc3be2d64073b232616f13aceffd9c0fc5966e82 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Thu, 10 Mar 2022 13:07:05 +0100 Subject: [PATCH 2/2] format starlark --- .drone.star | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.star b/.drone.star index a5d726130ff..a501e467995 100644 --- a/.drone.star +++ b/.drone.star @@ -963,7 +963,7 @@ def binaryRelease(ctx, name): folder = "stable" buildref = ctx.build.ref.replace("refs/tags/v", "") buildref = buildref.lower() - if buildref.find("-") != -1: # "x.x.x-alpha", "x.x.x-beta", "x.x.x-rc" + if buildref.find("-") != -1: # "x.x.x-alpha", "x.x.x-beta", "x.x.x-rc" folder = "testing" target = "/ocis/%s/%s/%s" % (ctx.repo.name.replace("ocis-", ""), folder, buildref)