-
Notifications
You must be signed in to change notification settings - Fork 293
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
flags: Add --cache
flag for build cache as image
#1477
flags: Add --cache
flag for build cache as image
#1477
Conversation
b49c9d2
to
0d389f8
Compare
Codecov Report
@@ Coverage Diff @@
## main #1477 +/- ##
==========================================
+ Coverage 81.28% 81.37% +0.10%
==========================================
Files 151 152 +1
Lines 9778 9864 +86
==========================================
+ Hits 7947 8026 +79
- Misses 1355 1361 +6
- Partials 476 477 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start!
5a1ed76
to
dc5a9a3
Compare
4545a12
to
8fe74b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @dfreilich. This is looking really good.
I'm assuming that this PR will handle issues #1457 and #1475. If so, should we update the description to reflect that?
- Add `flag` definition - Integrate flag options with image cache - Add tests for flag options Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
- Add unit and acceptance tests Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
503888d
to
44f55dc
Compare
44f55dc
to
9cbc4b7
Compare
- Gate acceptance tests to work only when pack supports `--cache` - string constants for cache type and cache format has been moved to enums - Fix test cases, update acceptance test helper methods - Add new unit tests Signed-off-by: Nitish Gupta <imnitish.ng@gmail.com>
9cbc4b7
to
c1deb54
Compare
Add
--cache
flag for configuring build and launch cache as image.pack build --cache 'type=build;format=image;name=<image name/image registry address>'
Summary
Output
Before
After
Documentation
Related
Resolves #1475
Resolves #1457