Skip to content

Update Dockerfiles automatically#9445

Merged
rubo merged 4 commits into
masterfrom
feature/dockerfile-update
Oct 14, 2025
Merged

Update Dockerfiles automatically#9445
rubo merged 4 commits into
masterfrom
feature/dockerfile-update

Conversation

@rubo

@rubo rubo commented Oct 11, 2025

Copy link
Copy Markdown
Contributor

This is a follow-up to #9365. Since our Dockerfiles now have a hardcoded full version of .NET and an image digest for reproducible builds, we need a way to automate their update. Doing it manually is error-prone and prone to forgetting, which may cause unpredictable issues later.

Changes

  • Added a new workflow to update Dockerfiles with the latest digests and versions available. It creates a PR with changes, if any.
  • The workflow runs automatically every midnight. Such a frequency is needed to be on par with that of GitHub Actions. If required, it can be triggered manually as well.

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Notes on testing

Tested manually

@rubo rubo changed the title Feature/dockerfile update Update Dockerfiles automatically Oct 11, 2025
@rubo rubo marked this pull request as ready for review October 13, 2025 14:47
@rubo rubo requested review from a team, LukaszRozmej, cbermudez97 and stdevMac October 13, 2025 14:47
@rubo rubo added devops and removed build changes labels Oct 13, 2025
Comment thread .github/workflows/update-dockerfiles.yml

@cbermudez97 cbermudez97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. As a suggestion, since the workflow uses a lot of env variables it might be good to use the ${VAR} format to avoid interpolation issues.

@rubo

rubo commented Oct 13, 2025

Copy link
Copy Markdown
Contributor Author

LGTM. As a suggestion, since the workflow uses a lot of env variables it might be good to use the ${VAR} format to avoid interpolation issues.

It uses just a single environment variable. Did you mean Bash variables?

@rubo rubo merged commit a790048 into master Oct 14, 2025
141 of 143 checks passed
@rubo rubo deleted the feature/dockerfile-update branch October 14, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants