-
Notifications
You must be signed in to change notification settings - Fork 29
Usage in Config
Using the CircleCI Config SDK, we can write a "config app" in JavaScript or TypeScript, rather than putting our config logic in a config.yml
file.
The suggested method for using the Config SDK.
This method builds your config app via CircleCI's Dynamic Config at the time your pipeline begins. This gives your config app access to build run-time environment variables, git data, and benefit from just-in-time config compilation
How to write a dynamic config app
Go a step further and publish your own NPM module using the Config SDK and manage all of your repositories' CI configs from one centrally managed, semantically versioned location.
Generate a CircleCI config locally and automatically with git pre-commit hooks. CircleCI's Dynamic Config is not required. However, statically generated configs are generated locally and do not benefit from just-in-time compilation.
How to write a static config app