Skip to content

Commit

Permalink
Add definitions for connect-swift & connect-swift-mocks (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebello95 and pkwarren authored Jan 17, 2023
1 parent 19dfdb8 commit eacfa9c
Show file tree
Hide file tree
Showing 14 changed files with 66 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/bufbuild/connect-swift-mocks/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
4 changes: 4 additions & 0 deletions plugins/bufbuild/connect-swift-mocks/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source:
github:
owner: bufbuild
repository: connect-swift
2 changes: 2 additions & 0 deletions plugins/bufbuild/connect-swift-mocks/v0.1.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.1.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
11 changes: 11 additions & 0 deletions plugins/bufbuild/connect-swift-mocks/v0.1.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions plugins/bufbuild/connect-swift/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
4 changes: 4 additions & 0 deletions plugins/bufbuild/connect-swift/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source:
github:
owner: bufbuild
repository: connect-swift
2 changes: 2 additions & 0 deletions plugins/bufbuild/connect-swift/v0.1.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.1.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
11 changes: 11 additions & 0 deletions plugins/bufbuild/connect-swift/v0.1.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:tRg+VSTVRgW8bdcCkJWSqEN35HbcsTA4xVjJUqj5rJ4=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:Je0mkrM20xUR8yhKspclN3QAK9EekTzwKOGEw1kea+Q=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:hDK1Bj+gS2aNyl5VsIL4GkAscJPZtOpxFo+cko+g/fk=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:WCBP5hIoRDCQCeEaUXy2KtQewVb6Ln3PUJucbfEYbsU=

0 comments on commit eacfa9c

Please sign in to comment.