20 lines
453 B
Makefile
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}
|