Checks our repositories and runs cookstyle against them
10K+
This application is designed to run cookstyle against repositories found by a topic in a github org and issue pull requests with the changes
Github has a rate limiter, do not run this script continously you will get rate limited and then the script will fail
Below are a list of variables, what they mean and example values
| Name | Type | Required | Description |
|---|---|---|---|
| GITHUB_TOKEN | String | Yes | Token to access the github api with, see Creating a token |
| GCR_DESTINATION_REPO_OWNER | String | Yes | The owner of the destination repositories you wish to update |
| GCR_DESTINATION_REPO_TOPICS | String | Yes | The topics that the destination repositories are tagged with to search for, Takes a csv, eg: chef-cookbook,vscode |
| GCR_BRANCH_NAME | String | Yes | The name of the branch to create if changes are required |
| GCR_PULL_REQUEST_TITLE | String | Yes | The title to apply to the Pull Request |
| GCR_PULL_REQUEST_BODY | String | Yes | The body text to apply to the Pull Request |
| GCR_PULL_REQUEST_LABELS | String | No | The labels to apply to the Pull Request, Takes a csv, eg: tech-debt,automated |
| GCR_GIT_NAME | String | No | The Name to use when creating the git commits |
| GCR_GIT_EMAIL | String | No | The E-mail address to use when creating the git commits |
| GCR_CHANGELOG_LOCATION | String | No | The location of the change log to update relative to the root of the repo, if supplied we will update it |
| GCR_CHANGELOG_MARKER | String | No | The string to use as the update point in the changelog, if not found it will be added on line 3 |
We use the GITHUB_TOKEN environment variable to also authenticate against git, github allows this to be used instead of username and password
This application is tagged as follows
| Name | Description |
|---|---|
| latest | The latest master merge |
| dev | The latest Pull Request build |
| semvar (eg: 1.0.0) | A Github Release of a fixed point in time |
While all updates should result in a release this is not always the case, sometimes master will change for non-functional related changes and a release will not be made, eg a new file in the infrastructure folder
Cookstyle will be baked into the image, it is baked into the image as part of chef workstation, the chef workstation version will be the latest version available at runtime.
Content type
Image
Digest
sha256:7e7dc6741…
Size
213.5 MB
Last updated
over 3 years ago
docker pull xorima/github-cookstyle-runner