Skip to content
Open
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
4 changes: 4 additions & 0 deletions plugins/community/ftshp-connect-php/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source:
github:
owner: ftshp
repository: connect-php
2 changes: 2 additions & 0 deletions plugins/community/ftshp-connect-php/v0.1.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/community/ftshp-connect-php/v0.1.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.27
FROM --platform=$BUILDPLATFORM golang:1.27.3-trixie@sha256:c65ecfe613b539ac74c62a4c3b2c27e8f8a6076384c8f27e8a3c0f3be17cc385 AS build

ARG TARGETOS TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH

RUN --mount=type=cache,target=/go/pkg/mod \
go install -ldflags="-s -w" -trimpath github.com/ftshp/connect-php/cmd/protoc-gen-connect-php@v0.1.0 \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-php /go/bin/protoc-gen-connect-php || true

FROM scratch
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
COPY --from=build --link /go/bin/protoc-gen-connect-php /
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-php" ]
12 changes: 12 additions & 0 deletions plugins/community/ftshp-connect-php/v0.1.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: v1
name: buf.build/community/ftshp-connect-php
plugin_version: v0.1.0
source_url: https://github.com/ftshp/connect-php
integration_guide_url: https://github.com/ftshp/connect-php#generated-code
description: Generates a PHP service interface and a PSR-18 client per service for ftshp/connect, an unofficial PHP implementation of the Connect protocol for unary RPCs. Use alongside protocolbuffers/php for the message classes.
deps:
- plugin: buf.build/protocolbuffers/php:v36.2
output_languages:
- php
spdx_license_id: Apache-2.0
license_url: https://github.com/ftshp/connect-php/blob/v0.1.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:u4NrDi5YnYuuI7eZNl2LLc/m3nAS9VS2ZZm1BcJ7omM=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:QzWFCBKKEVC1WRVEMpJsZL6QeO0rAQRJJzC4D2sksTo=
Loading