🪢 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
chore: authenticate with docker hub for CI (#3734)
Steffen Schmitz0b86f3207b1e
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.ymlindex 45bf3666d9..1d587b1ba1 100644--- a/.github/workflows/pipeline.yml+++ b/.github/workflows/pipeline.yml@@ -40,15 +40,17 @@ jobs:steps:- name: Checkoutuses: actions/checkout@v4-+ - name: Login to Docker Hub+ uses: docker/login-action@v3+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME_READ }}+ password: ${{ secrets.DOCKERHUB_TOKEN_READ }}- name: Set NEXT_PUBLIC_BUILD_IDrun: echo "NEXT_PUBLIC_BUILD_ID=$(git rev-parse --short HEAD)" >> $GITHUB_ENV-- name: Build and run both images from composerun: |docker compose -f docker-compose.build.yml up -dsleep 5 # Wait for PostgreSQL to accept connections-- name: Ensure no unhealthy statusrun: |if docker-compose ps | grep "(unhealthy)"; then@@ -57,11 +59,9 @@ jobs:elseecho "All services are healthy"fi-- name: Check worker healthrun: |timeout 10 bash -c 'until curl -f http://localhost:3030/api/health; do sleep 2; done'-- name: Check server healthrun: |timeout 10 bash -c 'until curl -f http://localhost:3000/api/public/health; do sleep 2; done'@@ -79,27 +79,28 @@ jobs:uses: pierotofy/set-swap-space@masterwith:swap-size-gb: 10-- uses: actions/checkout@v4- uses: pnpm/action-setup@v3with:version: 9.5.0+ - name: Login to Docker Hub+ uses: docker/login-action@v3+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME_READ }}+ password: ${{ secrets.DOCKERHUB_TOKEN_READ }}- name: Use Node.js ${{ matrix.node-version }}uses: actions/setup-node@v4with:node-version: ${{ matrix.node-version }}cache: "pnpm"cache-dependency-path: "pnpm-lock.yaml"-- name: install dependenciesrun: |pnpm install-- name: Load default envrun: |cp .env.dev.example .envgrep -v -e '^S3_BUCKET_NAME=' -e '^REDIS_HOST=' -e '^NEXT_PUBLIC_LANGFUSE_RUN_NEXT_INIT=' .env.dev.example > .env-- name: Run + migraterun: |docker compose -f docker-compose.dev.yml up -d@@ -107,14 +108,11 @@ jobs:docker compose psenv:POSTGRES_VERSION: ${{ matrix.postgres-version }}-- name: Seed DBrun: |pnpm run db:migrate-- name: Buildrun: pnpm run build-- name: Start Langfuserun: (pnpm run start&)env:@@ -127,7 +125,6 @@ jobs:LANGFUSE_INIT_USER_EMAIL: "[email protected]"LANGFUSE_INIT_USER_NAME: "Demo User"LANGFUSE_INIT_USER_PASSWORD: "password"-- name: run testsrun: pnpm --filter=web run test@@ -144,41 +141,39 @@ jobs:uses: pierotofy/set-swap-space@masterwith:swap-size-gb: 10-- uses: actions/checkout@v4- uses: pnpm/action-setup@v3with:version: 9.5.0-+ - name: Login to Docker Hub+ uses: docker/login-action@v3+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME_READ }}+ password: ${{ secrets.DOCKERHUB_TOKEN_READ }}- name: Use Node.js ${{ matrix.node-version }}uses: actions/setup-node@v4with:node-version: ${{ matrix.node-version }}cache: "pnpm"cache-dependency-path: "pnpm-lock.yaml"-- name: install dependenciesrun: |pnpm install-- name: Install golang-migrate for Clickhouse migrationsrun: |curl -L https://github.com/golang-migrate/migrate/releases/download/v4.16.2/migrate.linux-amd64.tar.gz | tar xvzsudo mv migrate /usr/bin/migratewhich migrate-- name: Load default envrun: |cp .env.dev.example .envcp .env.dev.example web/.envcp .env.dev.example worker/.env-- name: Run + migraterun: |docker compose -f docker-compose.dev.yml up -dsleep 5 # Wait for PostgreSQL to accept connectionsdocker compose ps-- name: Ensure no unhealthy statusrun: |if docker compose ps | grep "(unhealthy)"; then@@ -187,18 +182,16 @@ jobs:elseecho "All services are healthy"fi-- name: Seed DBrun: |pnpm run db:migratepnpm run db:seedpnpm run --filter=shared ch:up-- name: Buildrun: pnpm --filter=worker... run build-- name: run testsrun: pnpm --filter=worker run test+e2e-tests:runs-on: ubuntu-lateststeps:@@ -211,33 +204,31 @@ jobs:node-version: 20cache: "pnpm"cache-dependency-path: "pnpm-lock.yaml"-+ - name: Login to Docker Hub+ uses: docker/login-action@v3+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME_READ }}+ password: ${{ secrets.DOCKERHUB_TOKEN_READ }}- name: install dependenciesrun: |pnpm install-- name: Load default envrun: |cp .env.dev.example .envcp .env.dev.example web/.env-- name: Run + migraterun: |docker compose -f docker-compose.dev.yml up -ddocker compose pssleep 5 # Wait for PostgreSQL to accept connections-- name: Seed DBrun: |pnpm run db:migratepnpm run db:seed-- name: Buildrun: pnpm run build-- name: Install playwrightrun: pnpm --filter=web exec playwright install --with-deps-- name: Run e2e testsrun: pnpm --filter=web run test:e2e@@ -245,6 +236,11 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4+ - name: Login to Docker Hub+ uses: docker/login-action@v3+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME_READ }}+ password: ${{ secrets.DOCKERHUB_TOKEN_READ }}- uses: pnpm/action-setup@v3with:version: 9.5.0@@ -253,35 +249,28 @@ jobs:node-version: 20cache: "pnpm"cache-dependency-path: "pnpm-lock.yaml"-- name: install dependenciesrun: |pnpm install-- name: Load default envrun: |cp .env.dev.example .envecho "LANGFUSE_ASYNC_INGESTION_PROCESSING=true" >> .envecho "LANGFUSE_CACHE_API_KEY_ENABLED=true" >> .envecho "LANGFUSE_CACHE_PROMPT_ENABLED=true" >> .env-- name: Run + migraterun: |docker compose -f docker-compose.dev.yml up -ddocker compose pssleep 5 # Wait for PostgreSQL to accept connections-- name: Seed DBrun: |pnpm run db:migratepnpm run db:seed:examples-- name: Buildrun: pnpm run build-- name: Run serverrun: (pnpm run start&)-- name: Run e2e testsrun: pnpm --filter=web run test:e2e:server@@ -326,34 +315,27 @@ jobs:with:node-version: 20cache-dependency-path: "pnpm-lock.yaml"-- name: Checkoutuses: actions/checkout@v4-- name: Set NEXT_PUBLIC_BUILD_IDrun: echo "NEXT_PUBLIC_BUILD_ID=$(git rev-parse --short HEAD)" >> $GITHUB_ENV-- name: Log in to the GitHub Container registryuses: docker/login-action@v2with:registry: ghcr.iousername: ${{ github.actor }}password: ${{ secrets.GITHUB_TOKEN }}-- name: Log in to Docker Hubuses: docker/login-action@v2with:username: ${{ secrets.DOCKERHUB_USERNAME }}password: ${{ secrets.DOCKERHUB_TOKEN }}-- name: Set up QEMUuses: docker/setup-qemu-action@v3-- name: Set up Docker Buildxuses: docker/setup-buildx-action@v3with:driver-opts: network=host-- name: Extract metadata (tags, labels) for Dockerid: meta-webuses: docker/metadata-action@v4@@ -368,7 +350,6 @@ jobs:type=semver,pattern={{version}}type=semver,pattern={{major}}.{{minor}}type=semver,pattern={{major}}-- name: Build and push Docker image (web)uses: docker/build-push-action@v4with:@@ -380,7 +361,6 @@ jobs:platforms: |linux/amd64${{ startsWith(github.ref, 'refs/tags/') && 'linux/arm64' || '' }}-- name: Extract metadata (tags, labels) for Dockerid: meta-workeruses: docker/metadata-action@v4@@ -395,7 +375,6 @@ jobs:type=semver,pattern={{version}}type=semver,pattern={{major}}.{{minor}}type=semver,pattern={{major}}-- name: Build and push Docker image (worker)uses: docker/build-push-action@v4with: