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

feat: allow passing custom ACTIONS_CACHE_URL #1695

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LouisHaftmann
Copy link

Closes #1051

Currently it is not possible to overwrite the ACTIONS_CACHE_URL which is used for communicating with the cache api. The ACTIONS_CACHE_URL is always overwritten by the runner itself (runner code snippet).

Being able to overwrite this environment variable is crucial for using the actions/cache action with self-hosted runners, as it allows for a self-hosted caching solution.

To set a custom ACTIONS_CACHE_URL, you just need to define the CUSTOM_ACTIONS_CACHE_URL (open for naming suggestions) env var, which takes precedence over the default cache url env var.

Self-hosting an actions cache server is a much requested feature and this PR would make that way easier.

Other issues/discussions:

@LouisHaftmann LouisHaftmann requested a review from a team as a code owner March 26, 2024 16:34
@edigaryev
Copy link

@robherley, @bethanyj28 would you mind taking a look at this?

@LouisHaftmann
Copy link
Author

Any feedback on this PR? Is there something I should implement differently or something missing? I will gladly do anything to get this PR merged.

@LouisHaftmann
Copy link
Author

Here are some more PRs mentioning the same issue:
#947
#679

Would be great to have this feature! I don't see any real problem or security risk with this. Am I missing something? Would there be a safer way to allow for overwriting the cache server url?

Please let me know 🙏 @robherley @bethanyj28

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.

Add support for non-GitHub-hosted caching for self-hosted runners
2 participants