In this example we'll use CircleCI as a CI/CD tool
CircleCI config (.circleci/config.yml
) will help you to use ghctl docker image to run ghctl commands inside
Describe your repository config in some YAML file, e.g. repositories/ms-example.yml
CircleCI context will help you to keep environment variables secure. Create two environment variables in that context:
GITHUB_ORG
environment variable with value for your organizationGITHUB_TOKEN
environment variable with value for your API token. More about creating API token
On push to master, CircleCI will apply your changes and will create repository with following command:
$ ghctl apply -f ms-example.yml