- Go 91.1%
- Shell 4.4%
- Dockerfile 2.6%
- Makefile 1.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .woodpecker | ||
| assets | ||
| cmd/wccs | ||
| internal/cmd | ||
| testdata | ||
| testenv | ||
| vendor | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .golangci.yaml | ||
| config.example.toml | ||
| convert.go | ||
| convert_test.go | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| http.go | ||
| LICENSE | ||
| Makefile | ||
| provider.go | ||
| provider_test.go | ||
| README.md | ||
| wccs.go | ||
| wccs_test.go | ||
Woodpecker CI Config Service
woodpecker-ci-config-service is a command-line interface (CLI) tool designed to work with Woodpecker CI configurations. It provides functionalities to convert and serve configuration files for Woodpecker CI, a powerful and flexible continuous integration system.
Features
- Convert Command – Convert configuration files from a source format to Woodpecker CI format.
- Server Command – Serve configuration files through a web service for CI runs.
Why Use Woodpecker CI Config Service?
When integrating Woodpecker CI into your development workflow, woodpecker-ci-config-service
helps streamline the process of managing and serving configuration files.
It provides:
- Easy conversion from supported formats (currently Starlark) to Woodpecker CI configuration.
- Flexible output options, either to stdout or to disk.
- A web server to serve configurations to CI runs directly.
Commands
Convert Command
The convert command converts configuration files from a source format to Woodpecker CI format.
Currently, it supports conversion from Starlark.
Usage
# using the forge environment
ENV_SECRET_GITHUB_TOKEN=XXX wccs convert testdata/convert.forge.json [--out <output-file>]
# using the fs environment
WCCS_CONVERT_PROVIDERS=fs WCCS_CONVERT_PROVIDER_FS_SOURCE=testdata/*.star wccs convert testdata/convert.fs.json [--out <output-file>]
Server Command
The server command starts a web server that serves configuration files for CI runs.
Usage
wccs server
Installation
To install woodpecker-ci-config-service, clone the repository and build the tool:
git clone https://github.com/opencloud-eu/woodpecker-ci-config-service.git
cd woodpecker-ci-config-service
go build -o bin/wccs cmd/wccs/*.go
Future Improvements
- Support for additional source formats for conversion.
- Support for additional forges and private repositories.
- Improved error handling and logging.
License
This project is licensed under the Apache License 2.0.
Contributions
Contributions are welcome! Feel free to submit issues or pull requests to improve woodpecker-ci-config-service.
Acknowledgements
Special thanks to the Woodpecker CI team for their amazing work on the Woodpecker CI project.
The logo was generated using DALL-E. Thanks to the DALL-E team for providing such a fantastic tool.
Contact
For more information, reach out via the GitHub Issues.