-
Notifications
You must be signed in to change notification settings - Fork 35
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
[QUESTION] Is it possible to use the layers
to make this GHA reuse previously published image versions?
#90
Comments
@divyansh42 @tetchel @lstocchi any comments? |
Yeah, I've seen some related issues but I still don't understand if that is something that direct invocations of |
In particular, I was curious if that |
Can I use this GitHub Action and have a newer buildah version, in order to use |
GitHub Actions Images all use whatever is in the Ubuntu repos. When Lunar Lobster drops in a month, we'll get a newer version of buildah/podman/etc. If you'd like, you can use
Although it's finicky, it gives you the latest version of buildah and dnf (but not podman?). |
hhh well you can specify cache-to and cache-from now, but you need a system to make the right calls to the GitHub cache API (which i was trying to do) https://github.com/tonistiigi/go-actions-cache/blob/master/api.md and that system does not exist in buildah-build like it does in Docker's https://docs.docker.com/build/ci/github-actions/cache/#github-cache , so you might as well just use Docker's if you want caching A near attempt:
|
This seems to be fixed now |
Question
Hi, I've seen an interesting trick at https://github.com/pyca/infra/blob/d52c449/.github/workflows/build-docker-images.yml#L58 where they use
docker build --cache-from=...
to have Docker reuse some of the layer cache from an earlier image version IIUC.When I saw #43 / #42, I thought — would it be possible to do the same with podman/buildah? What would be required? Would
podman pull
coupled withlayers: true
be enough? Is there something I'm misunderstanding in how buildah works? (there probably is)I know that
podman
's--cache-from
is no-op but I thought maybe it is possible to achieve somehow on thebuildah
level?The text was updated successfully, but these errors were encountered: