[Rpm-maint] [rpm-software-management/rpm] Cache the base image in CI (PR #4319)
Michal Domonkos
notifications at github.com
Wed Sep 2 16:25:28 UTC 2026
@dmnks commented on this pull request.
> @@ -18,18 +18,39 @@ jobs:
steps:
- uses: actions/checkout at v3
+
+ - name: Restore cached base image
+ id: image-cache
+ uses: actions/cache at v6
+ with:
+ path: /tmp/image.tar
Okay, while I haven't found any specific info about the `/tmp` directory on (Ubuntu) runners, the [documentation](https://docs.github.com/en/actions/reference/workflows-and-actions/variables) does say:
> We strongly recommend that actions use variables to access the filesystem rather than using hardcoded file paths. GitHub sets variables for actions to use in all runner environments.
And surely enough, there's the `RUNNER_TEMP` environment variable that's automatically set on the runners and has the following description:
> The path to a temporary directory on the runner. This directory is emptied at the beginning and end of each job. Note that files will not be removed if the runner's user account does not have permission to delete them. For example, D:\a\_temp
So let's just use that. Thanks for pointing this out :+1:
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4319#discussion_r3916290319
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4319/review/5092263709 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260902/a7e7aa6b/attachment.htm>
More information about the Rpm-maint
mailing list