From 3edf0dda562858274b526568761b40a8917a3d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=BCller?= Date: Mon, 7 Jun 2021 16:21:06 +0200 Subject: Push translations over SSH Workaround for https://github.com/appleboy/drone-git-push/issues/43 respectively https://github.com/appleboy/drone-git-push/issues/49. --- .drone.star | 1 + 1 file changed, 1 insertion(+) (limited to '.drone.star') diff --git a/.drone.star b/.drone.star index 3975f4ec7..a1eab51ca 100644 --- a/.drone.star +++ b/.drone.star @@ -417,6 +417,7 @@ def update_translations(ctx, name, path, read_image = "owncloudci/transifex:late "commit": True, "commit_message": "[tx] updated " + name + " translations from transifex", "no_verify": True, + "remote": "git@github.com:owncloud/client.git", }, }), ], -- cgit v1.2.3 From e93f2b8404da63568a5fab80b4e34c25cdb46a6a Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 9 Jun 2021 09:38:43 +0200 Subject: remove migrated docs --- .drone.star | 118 +----------------------------------------------------------- 1 file changed, 1 insertion(+), 117 deletions(-) (limited to '.drone.star') diff --git a/.drone.star b/.drone.star index a1eab51ca..ca152668a 100644 --- a/.drone.star +++ b/.drone.star @@ -29,7 +29,7 @@ def main(ctx): trigger = changelog_trigger, depends_on = [], ), - # Build client and docs + # Build client build_and_test_client( ctx, "gcc", @@ -46,14 +46,12 @@ def main(ctx): "Ninja", trigger = build_trigger, ), - build_client_docs(ctx), notification( name = "build", depends_on = [ "changelog", "gcc-release-make", "clang-debug-ninja", - "build-docs", ], ), @@ -167,120 +165,6 @@ def build_and_test_client(ctx, c_compiler, cxx_compiler, build_type, generator, "depends_on": depends_on, } -def build_client_docs(ctx): - return { - "kind": "pipeline", - "name": "build-docs", - "platform": { - "os": "linux", - "arch": "amd64", - }, - "steps": [ - whenOnline({ - "name": "cache-restore", - "image": "plugins/s3-cache:1", - "pull": "always", - "settings": { - "endpoint": from_secret("cache_s3_endpoint"), - "access_key": from_secret("cache_s3_access_key"), - "secret_key": from_secret("cache_s3_secret_key"), - "restore": True, - }, - }), - { - "name": "docs-deps", - "image": "owncloudci/nodejs:11", - "pull": "always", - "commands": [ - "cd docs/", - "yarn install", - ], - }, - { - "name": "docs-validate", - "image": "owncloudci/nodejs:11", - "pull": "always", - "commands": [ - "cd docs/", - "yarn validate", - ], - }, - { - "name": "docs-build", - "image": "owncloudci/nodejs:11", - "pull": "always", - "commands": [ - "cd docs/", - "yarn antora", - ], - }, - { - "name": "docs-pdf", - "image": "owncloudci/asciidoctor:latest", - "pull": "always", - "commands": [ - "cd docs/", - "make pdf", - ], - }, - { - "name": "docs-artifacts", - "image": "owncloud/ubuntu:latest", - "pull": "always", - "commands": [ - "tree docs/public/", - ], - }, - whenOnline(whenPush({ - "name": "cache-rebuild", - "image": "plugins/s3-cache:1", - "pull": "always", - "settings": { - "endpoint": from_secret("cache_s3_endpoint"), - "access_key": from_secret("cache_s3_access_key"), - "secret_key": from_secret("cache_s3_secret_key"), - "rebuild": True, - "mount": "docs/cache", - }, - })), - whenOnline(whenPush({ - "name": "cache-flush", - "image": "plugins/s3-cache:1", - "pull": "always", - "settings": { - "endpoint": from_secret("cache_s3_endpoint"), - "access_key": from_secret("cache_s3_access_key"), - "secret_key": from_secret("cache_s3_secret_key"), - "flush": True, - "flush_age": 14, - }, - })), - whenOnline(whenPush({ - "name": "upload-pdf", - "image": "plugins/s3-sync:1", - "pull": "always", - "environment": { - "AWS_ACCESS_KEY_ID": from_secret("aws_access_key_id"), - "AWS_SECRET_ACCESS_KEY": from_secret("aws_secret_access_key"), - }, - "settings": { - "bucket": "uploads", - "endpoint": "https://doc.owncloud.com", - "path_style": True, - "source": "docs/build/", - "target": "/deploy/", - "delete": False, - }, - })), - ], - "trigger": { - "ref": [ - "refs/heads/master", - "refs/tags/**", - "refs/pull/**", - ], - }, - } def changelog(ctx, trigger = {}, depends_on = []): repo_slug = ctx.build.source_repo if ctx.build.source_repo else ctx.repo.slug -- cgit v1.2.3 From e659b6233acc35ad3331aed061f948653116e2ae Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 9 Jun 2021 09:39:38 +0200 Subject: autoformat starlark with buildifier --- .drone.star | 113 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 56 insertions(+), 57 deletions(-) (limited to '.drone.star') diff --git a/.drone.star b/.drone.star index ca152668a..f438842f6 100644 --- a/.drone.star +++ b/.drone.star @@ -17,7 +17,7 @@ def main(ctx): ], } changelog_trigger = { - "ref": [ + "ref": [ "refs/heads/master", "refs/pull/**", ], @@ -67,7 +67,7 @@ def main(ctx): name = "translations", trigger = translations_trigger, depends_on = [ - "translations-client" + "translations-client", ], ), ] @@ -165,86 +165,85 @@ def build_and_test_client(ctx, c_compiler, cxx_compiler, build_type, generator, "depends_on": depends_on, } - def changelog(ctx, trigger = {}, depends_on = []): repo_slug = ctx.build.source_repo if ctx.build.source_repo else ctx.repo.slug result = { - 'kind': 'pipeline', - 'type': 'docker', - 'name': 'changelog', - 'clone': { - 'disable': True, + "kind": "pipeline", + "type": "docker", + "name": "changelog", + "clone": { + "disable": True, }, - 'steps': [ + "steps": [ { - 'name': 'clone', - 'image': 'plugins/git-action:1', - 'pull': 'always', - 'settings': { - 'actions': [ - 'clone', + "name": "clone", + "image": "plugins/git-action:1", + "pull": "always", + "settings": { + "actions": [ + "clone", ], - 'remote': 'https://github.com/%s' % (repo_slug), - 'branch': ctx.build.source if ctx.build.event == 'pull_request' else 'master', - 'path': '/drone/src', - 'netrc_machine': 'github.com', - 'netrc_username': from_secret('github_username'), - 'netrc_password': from_secret('github_token'), + "remote": "https://github.com/%s" % (repo_slug), + "branch": ctx.build.source if ctx.build.event == "pull_request" else "master", + "path": "/drone/src", + "netrc_machine": "github.com", + "netrc_username": from_secret("github_username"), + "netrc_password": from_secret("github_token"), }, }, { - 'name': 'generate', - 'image': 'toolhippie/calens:latest', - 'pull': 'always', - 'commands': [ - 'calens >| CHANGELOG.md', + "name": "generate", + "image": "toolhippie/calens:latest", + "pull": "always", + "commands": [ + "calens >| CHANGELOG.md", ], }, { - 'name': 'diff', - 'image': 'owncloud/alpine:latest', - 'pull': 'always', - 'commands': [ - 'git diff', + "name": "diff", + "image": "owncloud/alpine:latest", + "pull": "always", + "commands": [ + "git diff", ], }, { - 'name': 'output', - 'image': 'toolhippie/calens:latest', - 'pull': 'always', - 'commands': [ - 'cat CHANGELOG.md', + "name": "output", + "image": "toolhippie/calens:latest", + "pull": "always", + "commands": [ + "cat CHANGELOG.md", ], }, { - 'name': 'publish', - 'image': 'plugins/git-action:1', - 'pull': 'always', - 'settings': { - 'actions': [ - 'commit', - 'push', + "name": "publish", + "image": "plugins/git-action:1", + "pull": "always", + "settings": { + "actions": [ + "commit", + "push", ], - 'message': 'Automated changelog update [skip ci]', - 'branch': 'master', - 'author_email': 'devops@owncloud.com', - 'author_name': 'ownClouders', - 'netrc_machine': 'github.com', - 'netrc_username': from_secret('github_username'), - 'netrc_password': from_secret('github_token'), + "message": "Automated changelog update [skip ci]", + "branch": "master", + "author_email": "devops@owncloud.com", + "author_name": "ownClouders", + "netrc_machine": "github.com", + "netrc_username": from_secret("github_username"), + "netrc_password": from_secret("github_token"), }, - 'when': { - 'ref': { - 'exclude': [ - 'refs/pull/**', - 'refs/tags/**' + "when": { + "ref": { + "exclude": [ + "refs/pull/**", + "refs/tags/**", ], }, }, }, ], - 'trigger': trigger, - 'depends_on': depends_on, + "trigger": trigger, + "depends_on": depends_on, } return result -- cgit v1.2.3