mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-30 16:08:56 +00:00
chore: change build process to use local and server the same (#955)
* initital ide * init * it is alive * go test is running * wip with buildkit * it definitly alive * all done, now the github actions * pretty * before i delete the generated proto stub * delete generated code * mount of grpc does not yet work * save before * level of insanity 1000% * huhur * gh action new dockerfile * fix * fix * fix * fix * amd64 only * try caching * try with reg * test with artifact upload * trial * add comments * publish branchname * correct vars * correct id * mode max for cache * remove unused code * cleanup * test action which uploads coverage * use * proper path * debug file location * path * test if ci still works * correct docker file name
This commit is contained in:
Executable
+65
@@ -0,0 +1,65 @@
|
||||
#! /bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
echo "Generate grpc"
|
||||
|
||||
protoc \
|
||||
-I=.tmp/protos/message \
|
||||
-I=.tmp/protos/admin/proto \
|
||||
-I=.tmp/protos/management/proto \
|
||||
-I=.tmp/protos/auth/proto \
|
||||
-I=.tmp/protos \
|
||||
-I=${GOPATH}/src \
|
||||
--go_out=plugins=grpc:$GOPATH/src \
|
||||
.tmp/protos/message/proto/message.proto
|
||||
|
||||
protoc \
|
||||
-I=.tmp/protos/message \
|
||||
-I=.tmp/protos/admin/proto \
|
||||
-I=.tmp/protos/management/proto \
|
||||
-I=.tmp/protos/auth/proto \
|
||||
-I=.tmp/protos \
|
||||
-I=${GOPATH}/src \
|
||||
--go_out=plugins=grpc:$GOPATH/src \
|
||||
--grpc-gateway_out=logtostderr=true:$GOPATH/src \
|
||||
--swagger_out=logtostderr=true:. \
|
||||
--authoption_out=. \
|
||||
--validate_out=lang=go:${GOPATH}/src \
|
||||
.tmp/protos/admin/proto/admin.proto
|
||||
|
||||
mv admin* $GOPATH/src/github.com/caos/zitadel/pkg/grpc/admin/
|
||||
|
||||
protoc \
|
||||
-I=.tmp/protos/message \
|
||||
-I=.tmp/protos/admin/proto \
|
||||
-I=.tmp/protos/management/proto \
|
||||
-I=.tmp/protos/auth/proto \
|
||||
-I=.tmp/protos \
|
||||
-I=${GOPATH}/src \
|
||||
--go_out=plugins=grpc:$GOPATH/src \
|
||||
--grpc-gateway_out=logtostderr=true,allow_delete_body=true:${GOPATH}/src \
|
||||
--swagger_out=logtostderr=true,allow_delete_body=true:. \
|
||||
--authoption_out=. \
|
||||
--validate_out=lang=go:${GOPATH}/src \
|
||||
.tmp/protos/management/proto/management.proto
|
||||
|
||||
mv management* $GOPATH/src/github.com/caos/zitadel/pkg/grpc/management/
|
||||
|
||||
protoc \
|
||||
-I=.tmp/protos/message \
|
||||
-I=.tmp/protos/admin/proto \
|
||||
-I=.tmp/protos/management/proto \
|
||||
-I=.tmp/protos/auth/proto \
|
||||
-I=.tmp/protos \
|
||||
-I=${GOPATH}/src \
|
||||
--go_out=plugins=grpc:$GOPATH/src \
|
||||
--grpc-gateway_out=logtostderr=true:$GOPATH/src \
|
||||
--swagger_out=logtostderr=true:. \
|
||||
--authoption_out=. \
|
||||
--validate_out=lang=go:${GOPATH}/src \
|
||||
.tmp/protos/auth/proto/auth.proto
|
||||
|
||||
mv auth* $GOPATH/src/github.com/caos/zitadel/pkg/grpc/auth/
|
||||
|
||||
echo "done generating"
|
||||
Reference in New Issue
Block a user