# lint allmakelint# lint account servicemakelint-accountmakelint-account-service# goup checks if there are any updates for imports in your module.# the main purpose is using it as a linter in continuous integration or in development process.makegomod_lint
Packager
makepkgerTARGET=greetermakepkger-greetermakepkger# other pkger commandspkgerlist-include/config/config.yaml-include/config/config.prod.yaml-include/config/certspkgerinfogithub.com/xmlking/micro-starter-kit
build
# use git tag as VERSIONmakebuildVERSION=v0.1.1makebuildTARGET=accountVERSION=v0.1.1makebuildTARGET=accountTYPE=serviceVERSION=v0.1.1makebuildTARGET=emailerTYPE=serviceVERSION=v0.1.1makebuildTARGET=accountTYPE=apiVERSION=v0.1.1makebuild-accountVERSION=v0.1.1makebuild-account-apiVERSION=v0.1.1
release
push tag to git
makereleaseVERSION=v0.1.1GITHUB_TOKEN=123...
docker
Optionally set export DOCKER_BUILDKIT=1 to use moby
makedocker-accountVERSION=v0.1.1makedocker-account-serviceVERSION=v0.1.1makedockerTARGET=accountVERSION=v0.1.1makedockerTARGET=accountTYPE=serviceVERSION=v0.1.1makedockerTARGET=accountDOCKER_REGISTRY=us.gcr.ioDOCKER_CONTEXT_PATH=<MY_PROJECT_ID>/micro-starter-kitmake docker TARGET=account DOCKER_REGISTRY=us.gcr.io DOCKER_CONTEXT_PATH=<MY_PROJECT_ID>/micro-starter-kit GO_MICRO_VERSION=v1.17.1
# short hand for TARGET and TYPE argsmakedocker-emailer-service# build all docker images for docker-composemakedockermakedockerDOCKER_REGISTRY=us.gcr.iomakedockerVERSION=v0.3.2GO_MICRO_VERSION=v2.3.0makedockerDOCKER_REGISTRY=docker.pkg.github.comDOCKER_CONTEXT_PATH=xmlking/micro-starter-kitmakedockerDOCKER_REGISTRY=docker.pkg.github.comDOCKER_CONTEXT_PATH=xmlking/micro-starter-kitVERSION=v0.2.9make docker DOCKER_REGISTRY=docker.pkg.github.com DOCKER_CONTEXT_PATH=xmlking/micro-starter-kit VERSION=v0.2.9 GO_MICRO_VERSION=v1.17.1
# publish all microservices imagesmakedocker_push# remove all previous microservices images and any dangling imagesmakedocker_clean
kustomize
generate build/kubernetes.yaml for given overlay and namespace using kustomize
makekustomizeOVERLAY=productionNS=defaultVERSION=v1.0.1makekustomizeOVERLAY=productionNS=defaultmakekustomizeOVERLAY=productionmakekustomizeNS=default# defaults: ENV=local, NS=default, VERSION=git tagmakekustomize# build yaml files for local, prod overlays into ./buildmakebuild/kustomizeVERSION=v0.2.5
Release
makerelease/draftVERSION=v0.1.1
At this point, you should inspect the release in the Github web UI. If it looks reasonable, proceed: