Skip to content

Commit

Permalink
Add job to push plugins to BSR on release (grpc-ecosystem#2321)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbrandhorst authored Sep 3, 2021
1 parent 359dc57 commit e6fb3d9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,21 @@ jobs:
go mod init tmp &&
go get golang.org/x/exp/cmd/gorelease@latest
- run: gorelease -base=v2.5.0
push_bsr_plugins:
docker:
- image: circleci/golang
steps:
- setup_remote_docker
- checkout
- run: echo "${BUF_API_TOKEN}" | docker login --username grpcgatewaybot --password-stdin plugins.buf.build
- run: |
cd .circleci/plugins/protoc-gen-grpc-gateway &&
docker build -t plugins.buf.build/grpc-ecosystem/grpc-gateway:${CIRCLE_TAG}-1 --build-arg=RELEASE_VERSION=${CIRCLE_TAG} . &&
docker push plugins.buf.build/grpc-ecosystem/grpc-gateway:${CIRCLE_TAG}-1
- run: |
cd .circleci/plugins/protoc-gen-openapiv2 &&
docker build -t plugins.buf.build/grpc-ecosystem/openapiv2:${CIRCLE_TAG}-1 --build-arg=RELEASE_VERSION=${CIRCLE_TAG} . &&
docker push plugins.buf.build/grpc-ecosystem/openapiv2:${CIRCLE_TAG}-1
proto_lint:
docker:
- image: bufbuild/buf:0.54.1
Expand Down Expand Up @@ -187,6 +202,12 @@ workflows:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
- push_bsr_plugins:
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
- update-repositoriesbzl:
filters:
branches:
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e6fb3d9

Please sign in to comment.