Merge pull request #1062 from owncloud/fix_testing_upload_to_download_mirror
[docs-only] fix testing uploads
This commit is contained in:
+24
-37
@@ -907,44 +907,31 @@ def dockerEos(ctx):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def binary(ctx, name):
|
def binary(ctx, name):
|
||||||
|
# uploads binary to https://download.owncloud.com/ocis/ocis/testing/
|
||||||
|
target = '/ocis/%s/testing' % (ctx.repo.name.replace("ocis-", ""))
|
||||||
if ctx.build.event == "tag":
|
if ctx.build.event == "tag":
|
||||||
settings = {
|
# uploads binary to eg. https://download.owncloud.com/ocis/ocis/1.0.0-beta9/
|
||||||
'endpoint': {
|
target = '/ocis/%s/%s' % (ctx.repo.name.replace("ocis-", ""), ctx.build.ref.replace("refs/tags/v", ""))
|
||||||
'from_secret': 's3_endpoint',
|
|
||||||
},
|
settings = {
|
||||||
'access_key': {
|
'endpoint': {
|
||||||
'from_secret': 'aws_access_key_id',
|
'from_secret': 's3_endpoint',
|
||||||
},
|
},
|
||||||
'secret_key': {
|
'access_key': {
|
||||||
'from_secret': 'aws_secret_access_key',
|
'from_secret': 'aws_access_key_id',
|
||||||
},
|
},
|
||||||
'bucket': {
|
'secret_key': {
|
||||||
'from_secret': 's3_bucket',
|
'from_secret': 'aws_secret_access_key',
|
||||||
},
|
},
|
||||||
'path_style': True,
|
'bucket': {
|
||||||
'strip_prefix': 'ocis/dist/release/',
|
'from_secret': 's3_bucket',
|
||||||
'source': 'ocis/dist/release/*',
|
},
|
||||||
'target': '/ocis/%s/%s' % (ctx.repo.name.replace("ocis-", ""), ctx.build.ref.replace("refs/tags/v", "")),
|
'path_style': True,
|
||||||
}
|
'strip_prefix': 'ocis/dist/release/',
|
||||||
else:
|
'source': 'ocis/dist/release/*',
|
||||||
settings = {
|
'target': target,
|
||||||
'endpoint': {
|
}
|
||||||
'from_secret': 's3_endpoint',
|
|
||||||
},
|
|
||||||
'access_key': {
|
|
||||||
'from_secret': 'aws_access_key_id',
|
|
||||||
},
|
|
||||||
'secret_key': {
|
|
||||||
'from_secret': 'aws_secret_access_key',
|
|
||||||
},
|
|
||||||
'bucket': {
|
|
||||||
'from_secret': 's3_bucket',
|
|
||||||
},
|
|
||||||
'path_style': True,
|
|
||||||
'strip_prefix': 'dist/release/',
|
|
||||||
'source': 'ocis/dist/release/*',
|
|
||||||
'target': '/ocis/%s/testing' % (ctx.repo.name.replace("ocis-", "")),
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'kind': 'pipeline',
|
'kind': 'pipeline',
|
||||||
|
|||||||
Reference in New Issue
Block a user