Skip to content

paketo-buildpacks/github-config

Github config

This repository contains config files common to implementation and language-family CNBs.

Rules

Run scripts/sanity.sh to see if the changes you made to this repo are valid.

Run scripts/repo_rules.sh to see if your paketo cnb github repo has recommended settings.

How do I consume this common config

If you just wrote a new CNB, run bootstrap.sh as follows:

# type is either "implementation", "language-family", or "builder"
./scripts/bootstrap.sh --target <path/to/your/cnb> --repo-type <type>

This will copy the relevant config files to your CNB. Git commit and Push your CNB.

Now, to wire up your CNB repo to receive relevant updates as a pull requests:

  • Append your repo name to the relevant file here
  • Configure deploy-keys, secrets as required in workflow

Submit your change to this repo as a PR. You should be all set when the PR is merged.

Dependency updates

Repositories managed by github-config get dependency updates from Renovate. Onboarding new repositories need steps below:

For the github-config repository:

For the repository you are adding renovate:

  • Remove current dependency update configuration .github/dependabot.yml
  • Add dependabot.yml and renovate.json to .github/.syncignore
  • Add renovate.json to the .github directory with following content:
{
    "$schema": "https://docs.renovatebot.com/renovate-schema.json",
    "extends": [
        "github>paketo-buildpacks/github-config//renovate/<respective configuration file in github-config>"
    ]
}

You can add additional configuration (like repository-specific labels depending on minor, major or patch updates) to the repository owned renovate.json. The documentation for all configuration options can be found here: https://docs.renovatebot.com/configuration-options/

About

Common repository configuration

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 24