🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
ci: publish the AI gateway image on release (#19068)
Tobias Wochinger498e481ce3a1
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.ymlindex a0f46820a4..eb48d3c0c9 100644--- a/.github/workflows/pipeline.yml+++ b/.github/workflows/pipeline.yml@@ -1853,29 +1853,53 @@ jobs:include:- component: webimage_name: langfuse+ context: .dockerfile: ./web/Dockerfileplatform: linux/amd64platform_tag: amd64runner: blacksmith-4vcpu-ubuntu-2404- component: webimage_name: langfuse+ context: .dockerfile: ./web/Dockerfileplatform: linux/arm64platform_tag: arm64runner: blacksmith-4vcpu-ubuntu-2404-arm- component: workerimage_name: langfuse-worker+ context: .dockerfile: ./worker/Dockerfileplatform: linux/amd64platform_tag: amd64runner: blacksmith-4vcpu-ubuntu-2404- component: workerimage_name: langfuse-worker+ context: .dockerfile: ./worker/Dockerfileplatform: linux/arm64platform_tag: arm64runner: blacksmith-4vcpu-ubuntu-2404-arm+ # The gateway crate is its own build context (ai-gateway/.dockerignore).+ - component: ai-gateway+ image_name: ai-gateway+ context: ./ai-gateway+ dockerfile: ./ai-gateway/Dockerfile+ platform: linux/amd64+ platform_tag: amd64+ runner: blacksmith-4vcpu-ubuntu-2404+ - component: ai-gateway+ image_name: ai-gateway+ context: ./ai-gateway+ dockerfile: ./ai-gateway/Dockerfile+ platform: linux/arm64+ platform_tag: arm64+ runner: blacksmith-4vcpu-ubuntu-2404-armruns-on: ${{ matrix.runner }}+ # publish-docker-image-release is gated on this whole matrix succeeding, so+ # a failed gateway leg must not fail the job and block web and worker. The+ # gateway publish leg then finds fewer than two digests and fails, which+ # still raises the release Slack alert.+ continue-on-error: ${{ matrix.component == 'ai-gateway' }}permissions:packages: writecontents: read@@ -1956,7 +1980,7 @@ jobs:id: build-ghcruses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2.2.0with:- context: .+ context: ${{ matrix.context }}file: ${{ matrix.dockerfile }}outputs: type=image,name=ghcr.io/langfuse/${{ matrix.image_name }},push-by-digest=true,name-canonical=true,push=truelabels: ${{ steps.meta.outputs.labels }}@@ -1964,13 +1988,14 @@ jobs:build-args: |BASE_IMAGE=${{ steps.bases.outputs.base }}MICRO_BASE_IMAGE=${{ steps.bases.outputs.micro }}+ BUILD_ID=${{ github.sha }}provenance: falsesbom: false- name: Build and push image by digest to Docker Hub (${{ matrix.component }}, ${{ matrix.platform_tag }})id: build-dockerhubuses: useblacksmith/build-push-action@fb9e3e6a9299c78462bfadd0d93352c316adc9b8 # v2.2.0with:- context: .+ context: ${{ matrix.context }}file: ${{ matrix.dockerfile }}outputs: type=image,name=langfuse/${{ matrix.image_name }},push-by-digest=true,name-canonical=true,push=truelabels: ${{ steps.meta.outputs.labels }}@@ -1978,6 +2003,7 @@ jobs:build-args: |BASE_IMAGE=${{ steps.bases.outputs.base }}MICRO_BASE_IMAGE=${{ steps.bases.outputs.micro }}+ BUILD_ID=${{ github.sha }}provenance: falsesbom: false- name: Record pushed digests@@ -2016,6 +2042,8 @@ jobs:image_name: langfuse- component: workerimage_name: langfuse-worker+ - component: ai-gateway+ image_name: ai-gatewayruns-on: blacksmith-4vcpu-ubuntu-2404permissions:packages: writediff --git a/ai-gateway/README.md b/ai-gateway/README.mdindex 87162344a0..2ebaa7d09a 100644--- a/ai-gateway/README.md+++ b/ai-gateway/README.md@@ -817,7 +817,15 @@ key metadata remain in Langfuse ingestion and are excluded from operational logs## Container-From the repository root:+Each Langfuse release publishes a multi-platform (linux/amd64, linux/arm64)+image to `langfuse/ai-gateway` on Docker Hub and+`ghcr.io/langfuse/ai-gateway`, tagged like the web and worker images.+Every release publishes `<version>` and `sha-<commit>`. Stable releases also+update `<major>.<minor>` and `<major>`, plus `latest` for v4; release candidates+(`-rc`) do not move these tags. Release images build on the Iron Bank UBI9+bases.++To build locally, from the repository root:```shdocker build --target runtime \