add release procedure using goreleaser #75
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is introducing a GoReleaser workflow that build tracee binary and Docker image, and can push them to GitHub/DockerHub.
related to: #69
GoReleaser is a popular tool for Go projects, and we (aqua) use it in our other OSS Go projects, so we wanted to see if we can use it here as well. It works, but there are a couple of points to consider:
EBPFPROGRAM_BASE64
environment variable. I didn't find a way to define this in the goreleaser yaml, so I create it in the makefile, meaning GoReleaser must be called through the makefile which is awkward solution but was the compromise I found.Essentially this is about supporting 3 partially overlapping tools for build automation: Makefile/Docker/GoReleaser. I tried to find a middleground between them, let me know if you think it's reasonable.