diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-06-10 18:50:42 +0300 |
---|---|---|
committer | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-06-10 18:50:42 +0300 |
commit | 45ad91962819d97586d1492b73ad4a0181628ec8 (patch) | |
tree | 16ba9956109b32cde64bfe325301e26294871bb3 /.drone.star | |
parent | 7d02c7eadcc70ec27a096179404997f953e3db47 (diff) | |
parent | 6d3180adb0e4e0c9e7bca256760b63dd8cb6283d (diff) |
Merge remote-tracking branch 'origin/2.8'
Diffstat (limited to '.drone.star')
-rw-r--r-- | .drone.star | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/.drone.star b/.drone.star index d61df0730..45111011a 100644 --- a/.drone.star +++ b/.drone.star @@ -6,9 +6,6 @@ # def main(ctx): - translations_trigger = { - "cron": ["translations-2-7"], - } build_trigger = { "ref": [ "refs/heads/master", @@ -64,22 +61,6 @@ def main(ctx): "clang-debug-ninja", ], ), - - # Sync translations - update_translations( - ctx, - "client", - "translations", - read_image = "rabits/qt:5.12-desktop", - trigger = translations_trigger, - ), - notification( - name = "translations", - trigger = translations_trigger, - depends_on = [ - "translations-client", - ], - ), ] return pipelines @@ -377,51 +358,6 @@ def make(target, path, image = "owncloudci/transifex:latest"): ], } -def update_translations(ctx, name, path, read_image = "owncloudci/transifex:latest", write_image = "owncloudci/transifex:latest", trigger = {}, depends_on = []): - return { - "kind": "pipeline", - "name": "translations-" + name, - "platform": { - "os": "linux", - "arch": "amd64", - }, - "steps": [ - make("l10n-read", path, read_image), - make("l10n-push", path), - make("l10n-pull", path), - make("l10n-write", path, write_image), - make("l10n-clean", path), - # keep time window for commit races as small as possible - { - "name": "update-repo-before-commit", - "image": "docker:git", - "commands": [ - "git stash", - "git pull --ff-only origin +refs/heads/$${DRONE_BRANCH}", - '[ "$(git stash list)" = "" ] || git stash pop', - ], - }, - whenOnline({ - "name": "commit", - "image": "appleboy/drone-git-push", - "pull": "always", - "settings": { - "ssh_key": from_secret("git_push_ssh_key"), - "author_name": "ownClouders", - "author_email": "devops@owncloud.com", - "remote_name": "origin", - "branch": "${DRONE_BRANCH}", - "empty_commit": False, - "commit": True, - "commit_message": "[tx] updated " + name + " translations from transifex", - "no_verify": True, - }, - }), - ], - "trigger": trigger, - "depends_on": depends_on, - } - def notification(name, depends_on = [], trigger = {}): trigger = dict(trigger) if not "status" in trigger: |