Skip to content

Commit

Permalink
Update bufbuild/protoschema plugins (#1680)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Jan 25, 2025
1 parent 4624116 commit 926f09a
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/bufbuild/protoschema-jsonschema/v0.2.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/bufbuild/protoschema-jsonschema/v0.2.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.12
FROM --platform=$BUILDPLATFORM golang:1.23.5-bookworm AS build

ARG TARGETOS TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH

RUN --mount=type=cache,target=/go/pkg/mod \
go install -ldflags="-s -w" -trimpath github.com/bufbuild/protoschema-plugins/cmd/[email protected] \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-jsonschema /go/bin/protoc-gen-jsonschema || true

FROM scratch
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
COPY --from=build --link /go/bin/protoc-gen-jsonschema /
USER nobody
ENTRYPOINT [ "/protoc-gen-jsonschema" ]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: v1
name: buf.build/bufbuild/protoschema-jsonschema
plugin_version: v0.2.0
source_url: https://github.com/bufbuild/protoschema-plugins
description: Generates JSON Schema files from protobuf files. This implementation uses the latest Draft 2020-12.
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protoschema-plugins/blob/v0.2.0/LICENSE
2 changes: 2 additions & 0 deletions plugins/bufbuild/protoschema-pubsub/v0.2.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/bufbuild/protoschema-pubsub/v0.2.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.12
FROM --platform=$BUILDPLATFORM golang:1.23.5-bookworm AS build

ARG TARGETOS TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH

RUN --mount=type=cache,target=/go/pkg/mod \
go install -ldflags="-s -w" -trimpath github.com/bufbuild/protoschema-plugins/cmd/[email protected] \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-pubsub /go/bin/protoc-gen-pubsub || true

FROM scratch
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
COPY --from=build --link /go/bin/protoc-gen-pubsub /
USER nobody
ENTRYPOINT [ "/protoc-gen-pubsub" ]
7 changes: 7 additions & 0 deletions plugins/bufbuild/protoschema-pubsub/v0.2.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: v1
name: buf.build/bufbuild/protoschema-pubsub
plugin_version: v0.2.0
source_url: https://github.com/bufbuild/protoschema-plugins
description: Generates a PubSub schema in the form of a single self-contained messaged normalized to proto2.
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protoschema-plugins/blob/v0.2.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:/ZdDm57WWZpTxEM1GtqDRwgxVD0znRYkEz/k5lEbkrE=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:rhbxQtgD4Pt8h3FsZJLvDsfSG5AAZEWtGn+7QvqBv6M=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:L9RwJyIIdZ320achAuRucuQ51mW2AbpwT1ZWdddyURM=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:J59Nbi1l4fBtI4C5YgnyOH4NLcxRZqbvJBKw/EQq0u4=

0 comments on commit 926f09a

Please sign in to comment.