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

Add cache builtin #308

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Add cache builtin #308

wants to merge 1 commit into from

Conversation

hinshun
Copy link
Contributor

@hinshun hinshun commented Feb 22, 2022

Experimental. Maybe redundant with buildkit's export cache options.

# If the image exists then use that image instead of executing input.
#
# @param input a filesystem to cache by vertex digest.
# @param ref a docker registry reference. if not fully qualified, it will be
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing phrase at the end?

@@ -3,6 +3,14 @@
# @return a scratch filesystem.
fs scratch()

# Caches an input fs by its vertex digest.
# If the image exists then use that image instead of executing input.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably note that this pushes the image as well as building it.

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