Skip to content

actions: add runner version to apt cache key#218

Merged
miek merged 1 commit intogreatscottgadgets:mainfrom
miek:apt-cache-runner-version
Feb 12, 2025
Merged

actions: add runner version to apt cache key#218
miek merged 1 commit intogreatscottgadgets:mainfrom
miek:apt-cache-runner-version

Conversation

@miek
Copy link
Member

@miek miek commented Feb 12, 2025

This adds the actions runner image version to the apt cache key, so it should get rebuilt when the runner is updated.

Copy link
Member

@martinling martinling left a comment

Choose a reason for hiding this comment

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

Bodgetastic.

Note that if we ever change the set of packages to be installed, we'll need to add our own value to the cache key as well, so that we can bump it without the runner version having changed.

But we can just do that when we first need it.

@miek
Copy link
Member Author

miek commented Feb 12, 2025

Ahh, I was wondering why the version was already set - that makes sense. Though it looks like it already adds the list of packages to the hash anyway (https://github.com/awalsh128/cache-apt-pkgs-action/blob/master/pre_cache_action.sh#L61-L73) so it might be fine?

@miek miek merged commit b440f02 into greatscottgadgets:main Feb 12, 2025
10 checks passed
@martinling
Copy link
Member

Oh cool, if it's already including that in the hash then we shouldn't need to do anything. 👍

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