Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate Updates using Renovate #10

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

StevenACoffman
Copy link

@StevenACoffman StevenACoffman commented Jan 21, 2025

Hi, this PR automates updating the Dockerfile and versions.env using Renovate. Renovate is a service similar to GitHub Dependabot, but with (fantastically) more configuration options. So many options in fact, if you're new you may want to gloss over [this cheat-sheet](https://www.augmentedmind.de/2021/07/25/renovate-bot-cheat-sheet](https://www.augmentedmind.de/2021/07/25/renovate-bot-cheat-sheet) prior to the official documentation.

This PR adds comments to the Dockerfile file such that a new Renovate Bot configuration with a custom regex will automatically update the Docker file when any new versions of the tools are released in the variety of package managers (go packages, npm packages, debian packages, etc.).

These comment "hints" in the Dockerfile file will help Renovate find the correct packages to update the version information. The renovate.json contains a custom regex manager that will use these hints and update the next line based on the preceding comment's datasource's packageName, and mostly just use the comment's depName as a "displayName" for logging purposes. In addition, there's regular Docker file config that updates the base images.

I also removed the protoc-gen-connect-es as it is not longer necessary with the 2.0 release of the connect framework.

Fixes #9

By the way, I got this technique from https://gitlab.com/kohenkatz/grpc-connect-buf via @kohenkatz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Automate updates
2 participants