Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/connectrpc/swift-mocks/v1.2.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
17 changes: 17 additions & 0 deletions plugins/connectrpc/swift-mocks/v1.2.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1.19
FROM swift:6.2.0-bookworm AS build

WORKDIR /app
RUN apt-get update \
&& apt-get install -y libstdc++-12-dev
RUN git clone --depth 1 --branch 1.2.0 https://github.com/connectrpc/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-debian12:latest@sha256:0000f9dc0290f8eaf0ecceafbc35e803649087ea7879570fbc78372df7ac649b AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=build /app/connect-swift/.build/release/protoc-gen-connect-swift-mocks .
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-swift-mocks" ]
29 changes: 29 additions & 0 deletions plugins/connectrpc/swift-mocks/v1.2.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: v1
name: buf.build/connectrpc/swift-mocks
plugin_version: v1.2.0
source_url: https://github.com/connectrpc/connect-swift
integration_guide_url: https://connectrpc.com/docs/swift/testing
description: Generates mocks that are compatible with Connect-Swift clients.
deps:
- plugin: buf.build/apple/swift:v1.32.0
- plugin: buf.build/connectrpc/swift:v1.2.0
output_languages:
- swift
registry:
swift:
deps:
- source: https://github.com/connectrpc/connect-swift.git
package: connect-swift
products: [ ConnectMocks ]
swift_versions: [ ".v5", ".v6" ]
version: 1.2.0
platforms:
macos: v10_15
ios: v12
tvos: v13
watchos: v6
opts:
- Visibility=Public
- FileNaming=PathToUnderscores
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-swift/blob/1.2.0/LICENSE
2 changes: 2 additions & 0 deletions plugins/connectrpc/swift/v1.2.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
17 changes: 17 additions & 0 deletions plugins/connectrpc/swift/v1.2.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1.19
FROM swift:6.2.0-bookworm AS build

WORKDIR /app
RUN apt-get update \
&& apt-get install -y libstdc++-12-dev
RUN git clone --depth 1 --branch 1.2.0 https://github.com/connectrpc/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-debian12:latest@sha256:0000f9dc0290f8eaf0ecceafbc35e803649087ea7879570fbc78372df7ac649b AS base

FROM scratch
COPY --link --from=base / /
COPY --link --from=build /app/connect-swift/.build/release/protoc-gen-connect-swift .
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-swift" ]
28 changes: 28 additions & 0 deletions plugins/connectrpc/swift/v1.2.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: v1
name: buf.build/connectrpc/swift
plugin_version: v1.2.0
source_url: https://github.com/connectrpc/connect-swift
integration_guide_url: https://connectrpc.com/docs/swift/getting-started
description: Idiomatic gRPC & Connect RPCs for Swift.
deps:
- plugin: buf.build/apple/swift:v1.32.0
output_languages:
- swift
registry:
swift:
deps:
- source: https://github.com/connectrpc/connect-swift.git
package: connect-swift
products: [ Connect ]
swift_versions: [ ".v5", ".v6" ]
version: 1.2.0
platforms:
macos: v10_15
ios: v12
tvos: v13
watchos: v6
opts:
- Visibility=Public
- FileNaming=PathToUnderscores
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-swift/blob/1.2.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:IFskm5Iu3LzqVRrv3i09NlJdy7N8s00Wymd+jnu80yI=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:24C0oBcfopWOWEbwUeY4S5TimRpKlB8ESoS2UjINjm4=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:6osQB7bm0YcckpFxzK/xT2Cvj9mECNDCM+8WJxW8qI8=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:0ab7wntSWxsB1ZdQOvDzZOhtiTMzeKpUqXf2GQ7VeYw=