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

WIP: Magefile POC #819

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

WIP: Magefile POC #819

wants to merge 9 commits into from

Conversation

mattdurham
Copy link
Collaborator

@mattdurham mattdurham commented May 10, 2024

This is 70% of our makefile implemented as Magefile, there are three binaries that allow you to run different targets. Two for osx and one for linux amd64. More can be added. Wanted to get thoughts before diving in deeper. I havent implemented the build cache fully so that is a todo. Tested that I can build all the binaries, boring crypto and images. Ideally the makefile becomes one command, the one to build the magefiles.

Its also debuggable! There is still some code to clean up but thought I would get some input before diving back in.

GO_TAGS="netgo builtinassets promtail_journal_enabled" \
GOEXPERIMENT=${GOEXPERIMENT} \
make alloy
RUN ./build-linux-amd64 alloy
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Need to add this back in once I tighten everything up

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.

None yet

1 participant