-
Notifications
You must be signed in to change notification settings - Fork 113
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
Handle dockerfile in build strategy conversion #1381
Handle dockerfile in build strategy conversion #1381
Conversation
6b623ea
to
b138922
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.
thanks for the enhancement!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qu1queee 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 |
if usesDockerfile { | ||
src.Parameters = append(src.Parameters, Parameter{ | ||
Name: "dockerfile", | ||
Description: "The Dockerfile to be built.", |
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.
ideally we should inline this and https://github.com/shipwright-io/build/pull/1352/files#diff-7cd8b697dab952af9e04af485edc3ac5c177272bbf432f2fb9f13b86ae144b6eR56
Changes
This change completes the handling of Dockerfiles:
$(build.dockerfile)
or$(params.DOCKERFILE)
gets their usage migrated to$(params.dockerfile)
and the dockerfile parameter is declared$(params.DOCKERFILE)
I am also adding a commit that fixes the conversion of the retention from alpha to beta. The old code worked find in unit tests but not in reality. We must create a copy of the Map so that the annotation addition works.
Submitter Checklist
Release Notes