v2: new version added for easier deployment and ci/cd
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
+33
-12
@@ -5,20 +5,41 @@ managed:
|
||||
enabled: true
|
||||
override:
|
||||
- file_option: go_package_prefix
|
||||
value: ${package_name}
|
||||
# FIXME: Change this to you're go.mod package name
|
||||
value: github.com/nfel
|
||||
plugins:
|
||||
# NOTE: golang
|
||||
- remote: buf.build/grpc/go
|
||||
# NOTE: grpc
|
||||
# go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
|
||||
# -remote buf.build/grpc/go
|
||||
- local: protoc-gen-go-grpc
|
||||
out: gen/go
|
||||
opt: paths=source_relative
|
||||
# - local: protoc-gen-go-grpc
|
||||
out: stub/go
|
||||
# NOTE: PB files
|
||||
# go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
|
||||
# -remote: buf.build/protocolbuffers/go:v1.31.0
|
||||
- local: protoc-gen-go
|
||||
out: gen/go
|
||||
opt: paths=source_relative
|
||||
# - local: protoc-gen-go
|
||||
- remote: buf.build/protocolbuffers/go:v1.30.0
|
||||
out: stub/go
|
||||
# NOTE: doc
|
||||
- local: protoc-gen-doc
|
||||
opt: html,index.html,source_relative
|
||||
out: stub/doc
|
||||
# NOTE: Gateway
|
||||
# - remote: buf.build/grpc-ecosystem/gateway:v2.16.2
|
||||
- local: protoc-gen-grpc-gateway
|
||||
out: stub/go
|
||||
# NOTE: SWAGGER json files
|
||||
# - remote: buf.build/grpc-ecosystem/openapiv2:v2.16.2
|
||||
- local: protoc-gen-openapiv2
|
||||
opt: import_prefix=github.com/nfel
|
||||
out: stub/go
|
||||
# - local: protoc-gen-go-gin
|
||||
# opt:
|
||||
# # - plugin=handler
|
||||
# # - plugin=service
|
||||
# # - plugin=mix
|
||||
# out: stub/go
|
||||
inputs:
|
||||
# - directory: ./
|
||||
- git_repo: ssh://git@5.34.204.11/Kahroba/proto
|
||||
branch: v2
|
||||
- directory: ./
|
||||
# - git_repo: ssh://git@5.34.204.11/Kahroba/proto
|
||||
# branch: v2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user