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

Build Improvements #1

Merged
merged 1 commit into from
Oct 30, 2024
Merged

Conversation

alexlovelltroy
Copy link
Member

  • 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.

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)

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?

Copy link
Member Author

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.

Copy link

@davidallendj davidallendj left a 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.

@davidallendj
Copy link

I'm going to go ahead a approve since the comments aren't blocking.

@davidallendj davidallendj self-requested a review October 30, 2024 18:39
Copy link

@davidallendj davidallendj left a 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.

@alexlovelltroy alexlovelltroy merged commit 88339ad into main Oct 30, 2024

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
Copy link
Collaborator

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.

Copy link
Collaborator

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.
Copy link
Collaborator

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?

@alexlovelltroy
Copy link
Member Author

just merged. I'll fix the two typos and re-submit

@synackd synackd mentioned this pull request Nov 7, 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

Successfully merging this pull request may close these issues.

3 participants