-
Notifications
You must be signed in to change notification settings - Fork 0
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
Build Improvements #1
Conversation
alexlovelltroy
commented
Oct 29, 2024
- Add .goreleaser.yml
- Update Dockerfile to use goreleaser
- Use the version information more consistent with smd
- Use coredhcp-generator without cloning it.
* Add .goreleaser.yml * Update Dockerfile to use goreleaser * Use the version information more consistent with smd * Use coredhcp-generator without cloning it.
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.
Not really a big deal, but typo in the file name if it's meant to be "release.yaml".
goamd64: | ||
- v3 | ||
|
||
# export GIT_STATE=$(if git diff-index --quiet HEAD --; then echo 'clean'; else echo 'dirty'; fi) |
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.
Can this be removed since the vars are defined in Realease.yaml
?
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.
I left it in as a comment so that people who are using goreleaser locally have a guide to follow.
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.
I left two comments about the changes.
I'm going to go ahead a approve since the comments aren't blocking. |
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.
Comments aren't blocking so approving.
|
||
1. Run GoReleaser in snapshot mode with the --snapshot and --skip-publish flags to create a local build without attempting to release it: | ||
```bash | ||
goreleaser release --snapshot --skip-publish --clean |
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.
--skip-publish
should be --skip publish
.
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.
Tested on cluster and --skip-publish
wasn't recognized as an option but --skip publush
was.
# | ||
# STEP 1: Clone coredhcp and build coredhcp-generator | ||
# | ||
# Include curl in the final image. |
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.
Do you mean tini
instead of curl
?
just merged. I'll fix the two typos and re-submit |