chore: fix proto docker (#11423)
* fix proto docker * add back pull_request to test * push * push++ * revert
This commit is contained in:
parent
d52982d623
commit
20735e792c
|
@ -1,6 +1,5 @@
|
|||
name: Build & Push SDK Proto Builder
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
@ -40,7 +39,6 @@ jobs:
|
|||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Login to DockerHub
|
||||
if: ${{ github.event_name != 'pull_request' }}
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUBTM_USERNAME }}
|
||||
|
@ -52,5 +50,5 @@ jobs:
|
|||
context: ./contrib/devtools
|
||||
file: ./contrib/devtools/dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
push: true
|
||||
tags: ${{ steps.prep.outputs.tags }}
|
||||
|
|
2
Makefile
2
Makefile
|
@ -393,7 +393,7 @@ devdoc-update:
|
|||
### Protobuf ###
|
||||
###############################################################################
|
||||
|
||||
protoVer=v0.3
|
||||
protoVer=v0.4
|
||||
protoImageName=tendermintdev/sdk-proto-gen:$(protoVer)
|
||||
containerProtoGen=$(PROJECT_NAME)-proto-gen-$(protoVer)
|
||||
containerProtoGenAny=$(PROJECT_NAME)-proto-gen-any-$(protoVer)
|
||||
|
|
|
@ -2730,7 +2730,7 @@ type AllowedMsgAllowance struct {
|
|||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
// allowance can be any of basic and filtered fee allowance.
|
||||
// allowance can be any of basic and periodic fee allowance.
|
||||
Allowance *anypb.Any `protobuf:"bytes,1,opt,name=allowance,proto3" json:"allowance,omitempty"`
|
||||
// allowed_messages are the messages for which the grantee has the access.
|
||||
AllowedMessages []string `protobuf:"bytes,2,rep,name=allowed_messages,json=allowedMessages,proto3" json:"allowed_messages,omitempty"`
|
||||
|
@ -2780,7 +2780,7 @@ type Grant struct {
|
|||
Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
|
||||
// grantee is the address of the user being granted an allowance of another user's funds.
|
||||
Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
|
||||
// allowance can be any of basic and filtered fee allowance.
|
||||
// allowance can be any of basic, periodic, allowed fee allowance.
|
||||
Allowance *anypb.Any `protobuf:"bytes,3,opt,name=allowance,proto3" json:"allowance,omitempty"`
|
||||
}
|
||||
|
||||
|
|
|
@ -1800,7 +1800,7 @@ type MsgGrantAllowance struct {
|
|||
Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
|
||||
// grantee is the address of the user being granted an allowance of another user's funds.
|
||||
Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
|
||||
// allowance can be any of basic and filtered fee allowance.
|
||||
// allowance can be any of basic, periodic, allowed fee allowance.
|
||||
Allowance *anypb.Any `protobuf:"bytes,3,opt,name=allowance,proto3" json:"allowance,omitempty"`
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM bufbuild/buf:1.0.0-rc10 as BUILDER
|
||||
FROM bufbuild/buf:1.1.0 as BUILDER
|
||||
|
||||
FROM golang:alpine
|
||||
|
||||
|
@ -7,17 +7,13 @@ ENV GOLANG_PROTOBUF_VERSION=1.27.1 \
|
|||
GRPC_GATEWAY_VERSION=1.14.7
|
||||
|
||||
|
||||
RUN GO111MODULE=on go get \
|
||||
github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest \
|
||||
google.golang.org/protobuf/cmd/protoc-gen-go@v${GOLANG_PROTOBUF_VERSION} \
|
||||
github.com/gogo/protobuf/protoc-gen-gogo@v${GOGO_PROTOBUF_VERSION} \
|
||||
github.com/gogo/protobuf/protoc-gen-gogofast@v${GOGO_PROTOBUF_VERSION} \
|
||||
github.com/gogo/protobuf/protoc-gen-gogofaster@v${GOGO_PROTOBUF_VERSION} \
|
||||
github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v${GRPC_GATEWAY_VERSION} \
|
||||
github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@v${GRPC_GATEWAY_VERSION} \
|
||||
github.com/regen-network/cosmos-proto/protoc-gen-gocosmos@latest
|
||||
|
||||
RUN GO111MODULE=on go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
|
||||
RUN GO111MODULE=on go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest
|
||||
RUN GO111MODULE=on go install google.golang.org/protobuf/cmd/protoc-gen-go@v${GOLANG_PROTOBUF_VERSION}
|
||||
RUN GO111MODULE=on go install github.com/gogo/protobuf/protoc-gen-gogo@v${GOGO_PROTOBUF_VERSION}
|
||||
RUN GO111MODULE=on go install github.com/gogo/protobuf/protoc-gen-gogofast@v${GOGO_PROTOBUF_VERSION}
|
||||
RUN GO111MODULE=on go install github.com/gogo/protobuf/protoc-gen-gogofaster@v${GOGO_PROTOBUF_VERSION}
|
||||
RUN GO111MODULE=on go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway@v${GRPC_GATEWAY_VERSION}
|
||||
RUN GO111MODULE=on go install github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger@v${GRPC_GATEWAY_VERSION}
|
||||
|
||||
RUN apk add --no-cache \
|
||||
nodejs \
|
||||
|
|
Loading…
Reference in New Issue