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

Simplify and tidy Makefile #656

Merged
merged 1 commit into from
Dec 23, 2022

Conversation

chrisdoherty4
Copy link
Member

@chrisdoherty4 chrisdoherty4 commented Dec 23, 2022

The project Makefile had lots of targets some of which perform duplicate functions and are, at times, tough to reconcile.

This PR seeks to simplify the targets used and clearly document how they work for future maintainers.

There's too much happening to explain in detail. In summary:

  • build can be used to build all binaries and supports cross platform builds with GOOS and GOARCH.
  • Each binary can be built individually with tink-server etc targets.
  • Images can be built with images
  • Individual images can be built with the name appended with -image e.g. tink-server-image.
  • Generated YAML now gets formatted such that it satisfies the linters.

@codecov
Copy link

codecov bot commented Dec 23, 2022

Codecov Report

Merging #656 (5e45a3c) into main (94f44ed) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #656   +/-   ##
=======================================
  Coverage   48.86%   48.86%           
=======================================
  Files          20       20           
  Lines        1017     1017           
=======================================
  Hits          497      497           
  Misses        514      514           
  Partials        6        6           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@chrisdoherty4 chrisdoherty4 force-pushed the feat/tidy-makefile branch 5 times, most recently from 40efec6 to 8b97351 Compare December 23, 2022 18:22
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@chrisdoherty4 chrisdoherty4 force-pushed the feat/tidy-makefile branch 3 times, most recently from 4c77edd to a254da2 Compare December 23, 2022 19:10
@chrisdoherty4 chrisdoherty4 force-pushed the feat/tidy-makefile branch 2 times, most recently from b507e58 to c0db08d Compare December 23, 2022 19:21
Signed-off-by: Chris Doherty <[email protected]>
@jacobweinstock jacobweinstock added ready-to-merge Signal to Mergify to merge the PR. and removed ready-to-merge Signal to Mergify to merge the PR. labels Dec 23, 2022
@jacobweinstock
Copy link
Member

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Dec 23, 2022

Sorry but this command cannot run when the configuration is updated

@jacobweinstock jacobweinstock merged commit 5b62d12 into tinkerbell:main Dec 23, 2022
@chrisdoherty4 chrisdoherty4 deleted the feat/tidy-makefile branch May 15, 2023 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants