ms-auth/Makefile
Vyacheslav1557 3b03447d2f feat(user):
2024-12-30 20:04:26 +05:00

20 lines
453 B
Makefile

tag = latest
gen:
@protoc --proto_path=proto --go_opt=paths=source_relative \
--go_out=proto --go-grpc_out=proto --grpc-gateway_out=proto \
proto/user/v1/user.proto
gen-openapi:
@protoc --proto_path=proto --openapi_out=proto/user/v1 \
proto/user/v1/user.proto
dev:
@make gen
@go run cmd/ms-auth/main.go
proxy:
@make gen
@go run cmd/ms-auth-proxy/main.go
build:
@make gen
@docker build . -t ms-auth:${tag}
@#docker push ms-auth:${tag}