Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Resource for concourse-ci to interact with weblate

License

Notifications You must be signed in to change notification settings

cioplenu/concourse-weblate-resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weblate Concourse Resource

A simple resource for Concourse CI to interact with a Weblate server. It uses the wlc cli client to interact with the Weblate server to perform simple repository commands like push, pull, lock or unlock.

This is still a work in progress. Feel free to contribute fixes and more features or open an issue but don't expect immediate support. This resource is not an official project of the Weblate or Concourse team.

Resource Type Configuration

resource_types:
  - name: weblate
    type: registry-image
    source:
      repository: cioplenu/concourse-weblate-resource
      tag: latest

The cioplenu/concourse-weblate-resource will be rebuild regularly but you are encouraged to build your own image from source if needed.

Source Configuration

  • url: Required URL of your weblate API like it's provided to the wlc cli tool. Example: https://translate.myproject.org/api/ . The trailing slash is necessary
  • key: Required Auth Token for the weblate server. This can be acquired in the admin interface or in the account settings under "API access"
  • translation: Required Path of a translation, component or project on the weblate server. Usually in the form:some-project/mobile-app

Behavior

Currently only out interacts with the server. Keep in mind that weblate puts a rate limit on wlc requests. If you run into a Throttling on the server error limit your requests or consult the weblate docs.

out: Run wlc commands

Runs the provided command against the configured translation on the weblate server.

Parameters:

  • command: Required Command to run against the weblate server. Currently supported are: commit, pull, push, reset, cleanup, lock, unlock

check: No-Op

Check is basically a no-op. It only checks if all required fields in the source configuration are present.

in: No-Op

About

Resource for concourse-ci to interact with weblate

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published