Skip to content

Commit

Permalink
Add protoc-gen-bq-schema v2.0.1 (#1605)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman authored Nov 26, 2024
1 parent 2908347 commit 19c561a
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plugins/googlecloudplatform/bq-schema/source.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
source:
# Disabled until we have a proper release
# See: https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema/pull/52
disabled: true
github:
owner: GoogleCloudPlatform
repository: protoc-gen-bq-schema
2 changes: 2 additions & 0 deletions plugins/googlecloudplatform/bq-schema/v2.0.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/googlecloudplatform/bq-schema/v2.0.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.10
FROM --platform=$BUILDPLATFORM golang:1.23.3-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/GoogleCloudPlatform/protoc-gen-bq-schema/v2@v2.0.1 \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-bq-schema /go/bin/protoc-gen-bq-schema || true

FROM scratch
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
COPY --from=build --link /go/bin/protoc-gen-bq-schema /
USER nobody
ENTRYPOINT [ "/protoc-gen-bq-schema", "-logtostderr=true" ]
7 changes: 7 additions & 0 deletions plugins/googlecloudplatform/bq-schema/v2.0.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: v1
name: buf.build/googlecloudplatform/bq-schema
plugin_version: v2.0.1
source_url: https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema
description: A plugin to convert Protobuf messages into JSON schema files for BigQuery.
spdx_license_id: Apache-2.0
license_url: https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema/blob/v2.0.1/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:lNkjrxnPqxLv2yMj/Uk+MEnZXimFsus4qjt9W9Ys/aI=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=

0 comments on commit 19c561a

Please sign in to comment.