mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-01 10:38:44 +00:00

* 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
66 lines
1.7 KiB
Bash
Executable File
66 lines
1.7 KiB
Bash
Executable File
#! /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"
|