diff --git a/plugins/bufbuild/connect-swift-mocks/.dockerignore b/plugins/bufbuild/connect-swift-mocks/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/connect-swift-mocks/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/connect-swift-mocks/source.yaml b/plugins/bufbuild/connect-swift-mocks/source.yaml new file mode 100644 index 000000000..6231d6c19 --- /dev/null +++ b/plugins/bufbuild/connect-swift-mocks/source.yaml @@ -0,0 +1,4 @@ +source: + github: + owner: bufbuild + repository: connect-swift diff --git a/plugins/bufbuild/connect-swift-mocks/v0.1.0/.dockerignore b/plugins/bufbuild/connect-swift-mocks/v0.1.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/connect-swift-mocks/v0.1.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/connect-swift-mocks/v0.1.0/Dockerfile b/plugins/bufbuild/connect-swift-mocks/v0.1.0/Dockerfile new file mode 100644 index 000000000..89014990e --- /dev/null +++ b/plugins/bufbuild/connect-swift-mocks/v0.1.0/Dockerfile @@ -0,0 +1,12 @@ +# syntax=docker/dockerfile:1.4 +FROM swift:5.7.2-focal AS build + +WORKDIR /app +RUN git clone --branch 0.1.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" ] diff --git a/plugins/bufbuild/connect-swift-mocks/v0.1.0/buf.plugin.yaml b/plugins/bufbuild/connect-swift-mocks/v0.1.0/buf.plugin.yaml new file mode 100644 index 000000000..69ef92c28 --- /dev/null +++ b/plugins/bufbuild/connect-swift-mocks/v0.1.0/buf.plugin.yaml @@ -0,0 +1,11 @@ +version: v1 +name: buf.build/bufbuild/connect-swift-mocks +plugin_version: v0.1.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.20.3 +output_languages: + - swift +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/connect-swift/blob/0.1.0/LICENSE diff --git a/plugins/bufbuild/connect-swift/.dockerignore b/plugins/bufbuild/connect-swift/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/connect-swift/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/connect-swift/source.yaml b/plugins/bufbuild/connect-swift/source.yaml new file mode 100644 index 000000000..6231d6c19 --- /dev/null +++ b/plugins/bufbuild/connect-swift/source.yaml @@ -0,0 +1,4 @@ +source: + github: + owner: bufbuild + repository: connect-swift diff --git a/plugins/bufbuild/connect-swift/v0.1.0/.dockerignore b/plugins/bufbuild/connect-swift/v0.1.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/connect-swift/v0.1.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/connect-swift/v0.1.0/Dockerfile b/plugins/bufbuild/connect-swift/v0.1.0/Dockerfile new file mode 100644 index 000000000..83e34d21b --- /dev/null +++ b/plugins/bufbuild/connect-swift/v0.1.0/Dockerfile @@ -0,0 +1,12 @@ +# syntax=docker/dockerfile:1.4 +FROM swift:5.7.2-focal AS build + +WORKDIR /app +RUN git clone --branch 0.1.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" ] diff --git a/plugins/bufbuild/connect-swift/v0.1.0/buf.plugin.yaml b/plugins/bufbuild/connect-swift/v0.1.0/buf.plugin.yaml new file mode 100644 index 000000000..442913aa6 --- /dev/null +++ b/plugins/bufbuild/connect-swift/v0.1.0/buf.plugin.yaml @@ -0,0 +1,11 @@ +version: v1 +name: buf.build/bufbuild/connect-swift +plugin_version: v0.1.0 +source_url: https://github.com/bufbuild/connect-swift +description: Idiomatic gRPC & Connect RPCs for Swift. +deps: + - plugin: buf.build/apple/swift:v1.20.3 +output_languages: + - swift +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/connect-swift/blob/0.1.0/LICENSE diff --git a/tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.1.0/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.1.0/eliza/plugin.sum new file mode 100644 index 000000000..2bde10676 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.1.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:tRg+VSTVRgW8bdcCkJWSqEN35HbcsTA4xVjJUqj5rJ4= diff --git a/tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.1.0/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.1.0/petapis/plugin.sum new file mode 100644 index 000000000..8cbceac79 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.1.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:Je0mkrM20xUR8yhKspclN3QAK9EekTzwKOGEw1kea+Q= diff --git a/tests/testdata/buf.build/bufbuild/connect-swift/v0.1.0/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/connect-swift/v0.1.0/eliza/plugin.sum new file mode 100644 index 000000000..6fc1f3748 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/connect-swift/v0.1.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:hDK1Bj+gS2aNyl5VsIL4GkAscJPZtOpxFo+cko+g/fk= diff --git a/tests/testdata/buf.build/bufbuild/connect-swift/v0.1.0/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/connect-swift/v0.1.0/petapis/plugin.sum new file mode 100644 index 000000000..ec3890f06 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/connect-swift/v0.1.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:WCBP5hIoRDCQCeEaUXy2KtQewVb6Ln3PUJucbfEYbsU=