Skip to content

Commit

Permalink
Add connect-swift v0.6.0 and validate v1.0.2 plugins (#619)
Browse files Browse the repository at this point in the history
New plugin versions found. Please review.

---------

Co-authored-by: pgmitche <[email protected]>
Co-authored-by: Patrick <[email protected]>
Co-authored-by: Philip K. Warren <[email protected]>
  • Loading branch information
4 people committed Jun 27, 2023
1 parent 0d1b612 commit 7dcc0f9
Show file tree
Hide file tree
Showing 25 changed files with 160 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/bufbuild/connect-swift-mocks/v0.6.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
12 changes: 12 additions & 0 deletions plugins/bufbuild/connect-swift-mocks/v0.6.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# syntax=docker/dockerfile:1.4
FROM swift:5.8.1-focal AS build

WORKDIR /app
RUN git clone --depth 1 --branch 0.6.0 https://github.com/bufbuild/connect-swift
WORKDIR /app/connect-swift
RUN swift build -c release --product protoc-gen-connect-swift-mocks --static-swift-stdlib -Xlinker -s

FROM gcr.io/distroless/cc-debian11
COPY --from=build --link /app/connect-swift/.build/release/protoc-gen-connect-swift-mocks .
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-swift-mocks" ]
26 changes: 26 additions & 0 deletions plugins/bufbuild/connect-swift-mocks/v0.6.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: v1
name: buf.build/bufbuild/connect-swift-mocks
plugin_version: v0.6.0
source_url: https://github.com/bufbuild/connect-swift
description: Generates mocks that are compatible with Connect-Swift clients.
deps:
- plugin: buf.build/apple/swift:v1.22.0
output_languages:
- swift
registry:
swift:
deps:
- source: https://github.com/bufbuild/connect-swift.git
package: connect-swift
products: [ ConnectMocks ]
swift_versions: [ ".v5" ]
version: 0.6.0
platforms:
macos: v10_15
ios: v12
tvos: v13
opts:
- Visibility=Public
- FileNaming=PathToUnderscores
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/connect-swift/blob/0.6.0/LICENSE
2 changes: 2 additions & 0 deletions plugins/bufbuild/connect-swift/v0.6.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
12 changes: 12 additions & 0 deletions plugins/bufbuild/connect-swift/v0.6.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# syntax=docker/dockerfile:1.4
FROM swift:5.8.1-focal AS build

WORKDIR /app
RUN git clone --depth 1 --branch 0.6.0 https://github.com/bufbuild/connect-swift
WORKDIR /app/connect-swift
RUN swift build -c release --product protoc-gen-connect-swift --static-swift-stdlib -Xlinker -s

FROM gcr.io/distroless/cc-debian11
COPY --from=build --link /app/connect-swift/.build/release/protoc-gen-connect-swift .
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-swift" ]
26 changes: 26 additions & 0 deletions plugins/bufbuild/connect-swift/v0.6.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: v1
name: buf.build/bufbuild/connect-swift
plugin_version: v0.6.0
source_url: https://github.com/bufbuild/connect-swift
description: Idiomatic gRPC & Connect RPCs for Swift.
deps:
- plugin: buf.build/apple/swift:v1.22.0
output_languages:
- swift
registry:
swift:
deps:
- source: https://github.com/bufbuild/connect-swift.git
package: connect-swift
products: [ Connect ]
swift_versions: [ ".v5" ]
version: 0.6.0
platforms:
macos: v10_15
ios: v12
tvos: v13
opts:
- Visibility=Public
- FileNaming=PathToUnderscores
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/connect-swift/blob/0.6.0/LICENSE
2 changes: 2 additions & 0 deletions plugins/bufbuild/validate-cpp/v1.0.2/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
9 changes: 9 additions & 0 deletions plugins/bufbuild/validate-cpp/v1.0.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# syntax=docker/dockerfile:1.4
FROM golang:1.20.5-bullseye AS build
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected]

FROM scratch
COPY --from=build --link /etc/passwd /etc/passwd
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-cpp .
USER nobody
ENTRYPOINT [ "/protoc-gen-validate-cpp" ]
11 changes: 11 additions & 0 deletions plugins/bufbuild/validate-cpp/v1.0.2/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: v1
name: buf.build/bufbuild/validate-cpp
plugin_version: v1.0.2
source_url: https://github.com/bufbuild/protoc-gen-validate
description: Generates C++ code to validate Protobuf messages using protoc-gen-validate constraints.
deps:
- plugin: buf.build/protocolbuffers/cpp:v23.3
output_languages:
- cpp
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.0.2/LICENSE
2 changes: 2 additions & 0 deletions plugins/bufbuild/validate-go/v1.0.2/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
9 changes: 9 additions & 0 deletions plugins/bufbuild/validate-go/v1.0.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# syntax=docker/dockerfile:1.4
FROM golang:1.20.5-bullseye AS build
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected]

FROM scratch
COPY --from=build --link /etc/passwd /etc/passwd
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-go .
USER nobody
ENTRYPOINT [ "/protoc-gen-validate-go" ]
11 changes: 11 additions & 0 deletions plugins/bufbuild/validate-go/v1.0.2/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: v1
name: buf.build/bufbuild/validate-go
plugin_version: v1.0.2
source_url: https://github.com/bufbuild/protoc-gen-validate
description: Generates Go code to validate Protobuf messages using protoc-gen-validate constraints.
deps:
- plugin: buf.build/protocolbuffers/go:v1.31.0
output_languages:
- go
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.0.2/LICENSE
2 changes: 2 additions & 0 deletions plugins/bufbuild/validate-java/v1.0.2/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
9 changes: 9 additions & 0 deletions plugins/bufbuild/validate-java/v1.0.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# syntax=docker/dockerfile:1.4
FROM golang:1.20.5-bullseye AS build
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected]

FROM scratch
COPY --from=build --link /etc/passwd /etc/passwd
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-java .
USER nobody
ENTRYPOINT [ "/protoc-gen-validate-java" ]
15 changes: 15 additions & 0 deletions plugins/bufbuild/validate-java/v1.0.2/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: v1
name: buf.build/bufbuild/validate-java
plugin_version: v1.0.2
source_url: https://github.com/bufbuild/protoc-gen-validate
description: Generates Java code to validate Protobuf messages using protoc-gen-validate constraints.
deps:
- plugin: buf.build/protocolbuffers/java:v23.3
output_languages:
- java
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.0.2/LICENSE
registry:
maven:
deps:
- build.buf.protoc-gen-validate:pgv-java-stub:1.0.2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:ryyGfdjE+6xSE6LxYx66pDaPATE5wyhCPdH/Tnb1PT4=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:2HOAos9kseDVKDxLcXzESkiteNEnWuMYYWJujRbvons=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:vpe8c/VzVamU9ttCJWtk2iT2aWsCD47KWVN6Xd4jhDw=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:E8QVNgzAzK1BpanCUwE7YTP5Ha/l8ysydC5Aw+MaMS0=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:TBO3mgHKqRFEyfA4AEheREcyHJ0pJNkkwkLMfQzloCU=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:jiocdIprUNUU3wVV2Px/oSD1wuPXWWerkzPcTFhqkmk=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:puu8FKu4EDgR16z7LYbISbJv4Lgn3Rdh9gN9fVzux0k=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:2aorQdLLQIb1C3nKz0Per5FL0gij2Y3iBq+/GlfHnxA=
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 7dcc0f9

Please sign in to comment.