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

invalidate stage builds only by the files they use #115

Open
turadg opened this issue Feb 21, 2024 · 0 comments
Open

invalidate stage builds only by the files they use #115

turadg opened this issue Feb 21, 2024 · 0 comments

Comments

@turadg
Copy link
Member

turadg commented Feb 21, 2024

It's convenient to have all the files for the proposal at its top level, but because the Docker build doesn't know which will be needed for any stage, it has to copy them all. That entails invalidating the non-test stages when tests update.

Design

Files used only in testing shouldn't be copied before the test stage.

Use the new COPY --exclude to exclude *test* files before the test stage.

Consider doing the same for "use" stage with, perhaps, a *use* pattern.

Acceptance criteria

Modifying "test" files only invalidates the test image, not the prepare, exec, use, etc

Bonus: modifying "use" files only invalidates the use stage of the use image, not the prepare, exec, etc

@turadg turadg changed the title separate subdirs for dependencies of each stage invalidate stage builds only by the files they use Oct 8, 2024
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

No branches or pull requests

1 participant