runner icon indicating copy to clipboard operation
runner copied to clipboard

Allow to overwrite ACTIONS_CACHE_URL environment variable

Open enescakir opened this issue 1 year ago • 5 comments

The runner script sets the ACTIONS_CACHE_URL using the value from the system connection. Currently, there's no way to override it.

Some community users use custom cache solutions with self-hosted runners. They need to maintain a fork of actions/runner or actions/toolkit, and actions/cache to override the value in their solution. However it leads to significant maintenance work.

If the runner script allows the ACTIONS_CACHE_URL value to be overridden by the CUSTOM_ACTIONS_CACHE_URL environment variable, it makes life a lot easier for the community, includes myself.

An alternative solution could involve allowing the base URL value in actions/toolkit to be overridden. Several individuals have submitted similar PRs to this one https://github.com/actions/toolkit/pull/1695, but they have not received adequate attention from the maintainers.

enescakir avatar Jul 31 '24 16:07 enescakir

Hi @luketomlinson, @ericsciple, @TingluoHuang. Enabling the overwriting the ACTIONS_CACHE_URL variable in actions/runner or actions/toolkit would simplify things for the community. How can we get a comment on one of the PRs?

enescakir avatar Aug 06 '24 08:08 enescakir

Hi @igwejk, you've helped me get attention from the maintainers before in another PR. How did you do it? Enabling the overwriting the ACTIONS_CACHE_URL variable in actions/runner or actions/toolkit would simplify things for the community. How can we get a comment on one of the PRs?

enescakir avatar Aug 09 '24 11:08 enescakir

Hi @nebuk89, what's your opinion on adding this feature into the actions/runner or actions/toolkit repository?

enescakir avatar Aug 19 '24 10:08 enescakir

We would also like to see this merged. We use selfhosted runners and would like to keep the cache offline to reduce internet ingress/egress costs.

kishorviswanathan avatar Sep 06 '24 06:09 kishorviswanathan

Hey @enescakir, let me get back to you later on this.

igwejk avatar Sep 13 '24 13:09 igwejk

This would be really great for self-hosted runners especially also for GHEC customers.

kuhnroyal avatar Nov 05 '24 23:11 kuhnroyal

Hi @luketomlinson, @ericsciple, @TingluoHuang, @AllanGuigou. Enabling the overwriting the ACTIONS_CACHE_URL variable in actions/runner or actions/toolkit would simplify things for the community. How can we get a comment on one of the PRs?

enescakir avatar Nov 13 '24 17:11 enescakir