Skip to content

Commit 19c561a

Browse files
authored
Add protoc-gen-bq-schema v2.0.1 (#1605)
1 parent 2908347 commit 19c561a

File tree

7 files changed

+27
-3
lines changed

7 files changed

+27
-3
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
source:
2-
# Disabled until we have a proper release
3-
# See: https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema/pull/52
4-
disabled: true
52
github:
63
owner: GoogleCloudPlatform
74
repository: protoc-gen-bq-schema
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# syntax=docker/dockerfile:1.10
2+
FROM --platform=$BUILDPLATFORM golang:1.23.3-bookworm AS build
3+
4+
ARG TARGETOS TARGETARCH
5+
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
6+
7+
RUN --mount=type=cache,target=/go/pkg/mod \
8+
go install -ldflags="-s -w" -trimpath github.com/GoogleCloudPlatform/protoc-gen-bq-schema/v2@v2.0.1 \
9+
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-bq-schema /go/bin/protoc-gen-bq-schema || true
10+
11+
FROM scratch
12+
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
13+
COPY --from=build --link /go/bin/protoc-gen-bq-schema /
14+
USER nobody
15+
ENTRYPOINT [ "/protoc-gen-bq-schema", "-logtostderr=true" ]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: v1
2+
name: buf.build/googlecloudplatform/bq-schema
3+
plugin_version: v2.0.1
4+
source_url: https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema
5+
description: A plugin to convert Protobuf messages into JSON schema files for BigQuery.
6+
spdx_license_id: Apache-2.0
7+
license_url: https://github.com/GoogleCloudPlatform/protoc-gen-bq-schema/blob/v2.0.1/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:lNkjrxnPqxLv2yMj/Uk+MEnZXimFsus4qjt9W9Ys/aI=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=

0 commit comments

Comments
 (0)