Skip to content

Add Renovate configuration#17

Draft
twz123 wants to merge 2 commits into
k0sproject:mainfrom
twz123:renovate
Draft

Add Renovate configuration#17
twz123 wants to merge 2 commits into
k0sproject:mainfrom
twz123:renovate

Conversation

@twz123

@twz123 twz123 commented Jun 19, 2026

Copy link
Copy Markdown
Member

The GitHub Actions workflow is still missing, but everything else is setup, mostly how the k0s repo is doing it, stripped down and adapted to the needs of this repo:

  • Do checkouts based on git commits. The git archive output is not guaranteed to be stable across git versions, so it might change, even if the extracted contents are identical. Use Renovate to bump both the version and the commit.
  • Manage GitHub Action version bumps, no need for Dependabot.
  • Pin OCI images using their digest.
  • Add some special handling for the -alpineX.Y tag suffix.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces Renovate configuration and adjusts the container build inputs so dependency updates (including GitHub Actions and container images) can be managed consistently, while also reducing unnecessary CI runs on pull requests.

Changes:

  • Add renovate.json to configure Renovate (GitHub Actions updates, Docker digest pinning, and custom regex manager for comment-annotated versions).
  • Update Dockerfile to pin containernetworking/plugins sources by commit instead of downloading a tag archive.
  • Restrict the build workflow trigger on pull_request to build-affecting paths, and document the same intent in .dockerignore.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
renovate.json Adds Renovate bot configuration, including Docker digest pinning and custom regex-based version updates.
Dockerfile Switches plugin source acquisition to a git-based approach and adds Renovate annotations for version tracking.
.github/workflows/build.yaml Adds paths filtering for PR-triggered builds to reduce unnecessary workflow runs.
.dockerignore Adds a note to keep ignored paths aligned with the build workflow’s paths filter.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Dockerfile
Comment thread Dockerfile
Comment thread .github/workflows/build.yaml Outdated
@twz123
twz123 marked this pull request as draft June 19, 2026 10:30
@twz123
twz123 force-pushed the renovate branch 2 times, most recently from 23c8915 to 48d9dc8 Compare June 19, 2026 10:31
twz123 added 2 commits June 19, 2026 13:24
Add a path filter to the workflow trigger that is equivalent to the
configuration in the .dockerignore file. Since pushing tags should
trigger a build anyway, we need two workflows, each with different
trigger settings.

This allows us to dissolve the Prepare step from the build workflow
because the parameters it computed can now be provided as inputs.

Signed-off-by: Tom Wieczorek <[email protected]>
The GitHub Actions workflow is still missing, but everything else is
setup, mostly how the k0s repo is doing it, stripped down and adapted to
the needs of this repo:

* Do checkouts based on git commits. The git archive output is not
  guaranteed to be stable across git versions, so it might change, even
  if the extracted contents are identical. Use Renovate to bump both the
  version and the commit.
* Manage GitHub Action version bumps, no need for Dependabot.
* Pin OCI images using their digest.
* Add some special handling for the -alpineX.Y tag suffix.

Signed-off-by: Tom Wieczorek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants