-
Notifications
You must be signed in to change notification settings - Fork 69
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 ThroughTarget function to builder #121
Add ThroughTarget function to builder #121
Conversation
Signed-off-by: TomSweeneyRedHat <[email protected]> docker build has a --target option that builds the stages from stage 0 through and including the target specified. The current ByTarget() function returns only the specified stage. The new ThroughTarget function is heavily based on ByTarget and will now return the targeted stage plus the prior stages emulating the docker build --target functionality. Added tests for both ByTarget and ThroughTarget Signed-off-by: TomSweeneyRedHat <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: TomSweeneyRedHat The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Needed for containers/buildah#1321. @rhatdan @umohnani8 @nalind @vrothberg PTAL |
LGTM 👍 |
LGTM |
LGTM |
/retest |
@nalind can you PTAL and merge if it's hip? I've a WIP Buildah PR waiting this one getting merged. |
/lgtm |
Signed-off-by: TomSweeneyRedHat [email protected]
docker build has a --target option that builds the stages from
stage 0 through and including the target specified. The current
ByTarget() function returns only the specified stage. The new
ThroughTarget function is heavily based on ByTarget and will now
return the targeted stage plus the prior stages emulating the
docker build --target functionality.
Added tests for both ByTarget and ThroughTarget
Signed-off-by: TomSweeneyRedHat [email protected]