-
Notifications
You must be signed in to change notification settings - Fork 37
✨ Use build args for the version string #778
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
Conversation
Signed-off-by: Dylan Murray <[email protected]>
Signed-off-by: Dylan Murray <[email protected]>
Dockerfile
Outdated
|
|
||
| FROM registry.access.redhat.com/ubi9/ubi-minimal | ||
| ARG SEED_ROOT | ||
| ARG HUB_VERSION=latest |
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.
@fbladilo this is where we can just template CI_VERSION
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.
Just a nit, but it is the file is building the hub image so the HUB_ seems redundant.
jortel
left a comment
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.
LGTM
Dockerfile
Outdated
| COPY --from=builder ${SEED_ROOT}/resources/ /tmp/seed | ||
| COPY --from=report /usr/local/static-report /tmp/analysis/report | ||
|
|
||
| RUN echo "${HUB_VERSION}" >> /etc/hub-build |
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.
Is this append (>>) desired instead of the overwrite (>) that was previously used to generate this file? Is there any concern where appending could introduce a problem that wouldn't be observed by overwriting?
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.
It seems safe given it should be a new file creation regardless, but wanted to toss it out there... 😉
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.
Agreed > would be more correct.
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.
Fair point; considering the base is always reset I don't think this would be an issue but no reason to append!
rayfordj
left a comment
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.
/lgtm
Signed-off-by: Dylan Murray <[email protected]>
Signed-off-by: Dylan Murray <[email protected]>
|
LGTM |
Signed-off-by: Dylan Murray <[email protected]> Signed-off-by: Cherry Picker <[email protected]>
Signed-off-by: Dylan Murray <[email protected]> Signed-off-by: Cherry Picker <[email protected]> Signed-off-by: Dylan Murray <[email protected]> Signed-off-by: Cherry Picker <[email protected]> Co-authored-by: Dylan Murray <[email protected]>
No description provided.