{"id":13581632,"url":"https://github.com/woodpecker-ci/example-config-service","last_synced_at":"2025-04-06T10:32:37.671Z","repository":{"id":103812379,"uuid":"464241398","full_name":"woodpecker-ci/example-config-service","owner":"woodpecker-ci","description":"Example for a basic configuration service","archived":true,"fork":false,"pushed_at":"2024-06-05T11:04:35.000Z","size":112,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-25T23:34:53.593Z","etag":null,"topics":["example","go","golang","service","woodpecker-ci","woodpeckerci"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/woodpecker-ci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"woodpecker-ci"}},"created_at":"2022-02-27T20:08:24.000Z","updated_at":"2024-06-05T11:04:49.000Z","dependencies_parsed_at":"2023-12-19T09:50:48.402Z","dependency_job_id":"972bcf31-e4be-4247-8ce7-235ffbd9bf5c","html_url":"https://github.com/woodpecker-ci/example-config-service","commit_stats":{"total_commits":28,"total_committers":9,"mean_commits":3.111111111111111,"dds":0.6428571428571428,"last_synced_commit":"4d95fa9df17ef6e105c6ba56f21ffb5b4e4459d5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodpecker-ci%2Fexample-config-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodpecker-ci%2Fexample-config-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodpecker-ci%2Fexample-config-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woodpecker-ci%2Fexample-config-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woodpecker-ci","download_url":"https://codeload.github.com/woodpecker-ci/example-config-service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246614354,"owners_count":20805720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example","go","golang","service","woodpecker-ci","woodpeckerci"],"created_at":"2024-08-01T15:02:08.621Z","updated_at":"2025-04-06T10:32:37.634Z","avatar_url":"https://github.com/woodpecker-ci.png","language":"Go","funding_links":["https://opencollective.com/woodpecker-ci"],"categories":["Go"],"sub_categories":[],"readme":"# Archived\n\nPlease checkout the new extensions sample which includes this config extension [here](https://github.com/woodpecker-ci/example-extensions)\n\n# Woodpecker CI Configuration Service example\n\nThis repository provides a very simplistic example of how to set up an\nexternal configuration service for **Woodpecker CI** The external service\ngets a **HTTP POST** request with information about the repo, current\nbuild, and the configs that would normally be used. It can then decide to\nacknowledge the current configs (By returning **HTTP 204**), or overriding\nthe configurations and returning new ones in the response\n\nUse cases for this system are:\n\n- Centralized configuration for multiple repositories at once\n- Preprocessing steps in the pipeline like templating, macros or conversion from\n  different pipeline formats to woodpeckers format\n\nThis service is written in go, to run it first copy the config example:\n`cp .env.example .env`\nDownload the public key from your woodpecker instance from\n`http(s)://your-woodpecker-server/api/signature/public-key` and save it\nto file. Set `WOODPECKER_CONFIG_SERVICE_PUBLIC_KEY_FILE` to the path to\nthat file and add a filtering regex. The repositories that have a name\nmatch the filtering regex will receive the config from `central-pipeline-config.yaml`,\nwhile all other repositories will continue using their original configuration.\n\nThen run using `go run .`.\n\nMake sure to configure your woodpecker instance with the correct **endpoint** and\nconfigure the same **secret**. See [Woodpeckers documentation here](https://woodpecker-ci.org/docs/administration/external-configuration-api)\n\neg:\n\n```shell\n# Server\n# ...\nWOODPECKER_CONFIG_SERVICE_ENDPOINT=http://\u003cservice\u003e:8000/ciconfig\nWOODPECKER_CONFIG_SERVICE_PUBLIC_KEY_FILE=public-key.pem\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodpecker-ci%2Fexample-config-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoodpecker-ci%2Fexample-config-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoodpecker-ci%2Fexample-config-service/lists"}