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
8 changes: 8 additions & 0 deletions .github/scripts/envoy-releases.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Prints Envoy's releases as labelled in the Buf registry, oldest first, without the leading "v".
# shortcut: reads one page of 250 labels (40 in Oct 2026); follow nextPageToken once Envoy has more.
set -euo pipefail
curl -sSf -X POST https://buf.build/buf.registry.module.v1.LabelService/ListLabels \
-H 'Content-Type: application/json' \
-d '{"pageSize":250,"resourceRef":{"name":{"owner":"envoyproxy","module":"envoy"}}}' \
| jq -r '.labels[].name' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sed 's/^v//' | sort -V
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
with:
setup_only: true
- uses: gradle/actions/setup-gradle@v6
- name: "Build and publish locally"
run: ./gradlew build publishToMavenLocal --console=plain
- name: "Build the latest Envoy release and publish locally"
run: ./gradlew build publishToMavenLocal -PenvoyVersion="$(.github/scripts/envoy-releases.sh | tail -1)" --console=plain
5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ jobs:
if [ -n "${ENVOY_VERSION}" ]; then
versions="${ENVOY_VERSION}"
else
versions=$(curl -sSf -X POST https://buf.build/buf.registry.module.v1.LabelService/ListLabels \
-H 'Content-Type: application/json' \
-d '{"pageSize":250,"resourceRef":{"name":{"owner":"envoyproxy","module":"envoy"}}}' \
| jq -r '.labels[].name' | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sed 's/^v//' | sort -V)
versions=$(.github/scripts/envoy-releases.sh)
fi

published=0
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ gen/
.classpath
.project
bin/
*.hprof
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ proto dependencies (xds, udpa, protoc-gen-validate, googleapis, cel, OpenTelemet
./gradlew build -PenvoyVersion=1.40.0
```

This needs the [`buf` CLI](https://buf.build/docs/cli/installation/) on your `PATH`.
There's no default release. CI builds the latest one, from `.github/scripts/envoy-releases.sh`. This needs the
[`buf` CLI](https://buf.build/docs/cli/installation/) on your `PATH`.

`google/api/annotations.proto`, `google/api/http.proto` and `google/rpc/status.proto` are not bundled: they come from
`com.google.api.grpc:proto-google-common-protos`, which gRPC already depends on, so the classes aren't duplicated.
Expand Down
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ plugins {
group = "net.woaf.jono.envoy"

// The Envoy release to build, e.g. -PenvoyVersion=1.40.0. -PbuildNumber=1 publishes a rebuild as 1.40.0-1.
def envoyVersion = providers.gradleProperty("envoyVersion").get()
def envoyVersion = providers.gradleProperty("envoyVersion").orNull
if (!envoyVersion) {
throw new GradleException("Say which Envoy release to build, e.g. -PenvoyVersion=1.40.0")
}
def buildNumber = providers.gradleProperty("buildNumber").getOrNull()
version = buildNumber ? "${envoyVersion}-${buildNumber}" : envoyVersion

Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
envoyVersion=1.40.0
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Loading