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

Add goreleaser #146

Merged
merged 4 commits into from
Jan 8, 2024
Merged

Add goreleaser #146

merged 4 commits into from
Jan 8, 2024

Conversation

ferranbt
Copy link
Collaborator

@ferranbt ferranbt commented Jan 8, 2024

📝 Summary

This PR introduces goreleaser to build releases for linux, darwin and windows with cgo enabled. It also produces docker images and pushes them to ghcr.

📚 References


  • I have seen and agree to CONTRIBUTING.md

username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publich ref name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use docker hub, i'll help set this up

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdyt?

probably docker hub is more common and easier to use, as you don't need to be logged into github (it's more easily accessible)

I've created https://hub.docker.com/r/flashbots/suave-geth and added env vars to the repo settings

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you set DOCKERHUB_USERNAME and DOCKERHUB_TOKEN?

@metachris
Copy link
Contributor

nice work!

Makefile Outdated
-v `pwd`/sysroot:/sysroot \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:v1.19.5 \
release --clean --release-notes /build/changelog.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it'd be better to create a draft release here, and manually edit the description and publish when ready

username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Publich ref name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: Publich ref name
- name: Public ref name

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to Log tag name

password: ${{ secrets.GITHUB_TOKEN }}

- name: Publich ref name
run: echo "Build for tag ${{ github.ref_name }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ferranbt ferranbt merged commit b255d39 into main Jan 8, 2024
3 checks passed
@ferranbt ferranbt deleted the feature/goreleaser branch January 8, 2024 16:33
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.

2 participants