...
Now, we are trying to decouple it from the tool repo.
Most of repos look have Makefile organized like below:
- Essential Makefile targets in repos which should tag code, publish and push Docker images
build
- build the binaries and run all validationtest
- run the unit tests and source code validationdocker-build
- build all Docker images in the repodocker-push
- push all Docker images to the registrylint
- examine Go source code and reports coding problemslicense
- run license checkcheck-version
- check version if it is valid and duplicatedclean
- remove all build artifactshelp
- show help message
- Essential Makefile targets in repos which should tag code only
build
- build the binaries and run all validationtest
- run the unit tests and source code validationlint
- examine Go source code and reports coding problemslicense
- run license checkcheck-version
- check version if it is valid and duplicatedclean
- remove all build artifactshelp
- show help message
- Essential Makefile targets in repos which should tag code, publish and push Helm charts
build
- build the binaries and run all validationtest
- run the unit tests and source code validationhelm-package
- package all Helm chartshelm-push
- push all Helm charts to the registrylint
- examine Go source code and reports coding problemslicense
- run license checkcheck-version
- check version if it is valid and duplicatedclean
- remove all build artifactshelp
- show help message
...