Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

ci: update docker build

Marc Klingend4f2f3a01ef3
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index faacbd5c5b..fdcd6365ad 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -214,20 +214,6 @@ jobs:
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
environment: "protected branches"
runs-on: ubuntu-latest
- strategy:
- matrix:
- registry:
- - ghcr.io
- - docker.io
- include:
- - registry: ghcr.io
- image_prefix: ghcr.io/${{ github.repository }}
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
- - registry: docker.io
- image_prefix: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.repository }}
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
permissions:
packages: write
contents: read
@@ -245,18 +231,26 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- - name: Log in to the Container registry
+ - name: Log in to the GitHub Container registry
+ uses: docker/login-action@v2
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Log in to Docker Hub
uses: docker/login-action@v2
with:
- registry: ${{ matrix.registry }}
- username: ${{ matrix.username }}
- password: ${{ matrix.password }}
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta-web
uses: docker/metadata-action@v4
with:
- images: ${{ matrix.image_prefix }}
+ images: |
+ ghcr.io/langfuse # GitHub
+ langfuse/langfuse # Docker Hub
tags: |
type=ref,event=branch
type=ref,event=pr
@@ -265,7 +259,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- - name: Build and push Docker image (web) to ${{ matrix.registry }}
+ - name: Build and push Docker image (web)
uses: docker/build-push-action@v4
with:
context: .
@@ -278,7 +272,9 @@ jobs:
id: meta-worker
uses: docker/metadata-action@v4
with:
- images: ${{ matrix.image_prefix }}-worker
+ images: |
+ ghcr.io/langfuse-worker # GitHub
+ langfuse/langfuse-worker # Docker Hub
tags: |
type=ref,event=branch
type=ref,event=pr
@@ -287,7 +283,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- - name: Build and push Docker image (worker) to ${{ matrix.registry }}
+ - name: Build and push Docker image (worker)
uses: docker/build-push-action@v4
with:
context: .