Skip to content

fix: use gemini-embedding-001 model with correct dimensions #7

fix: use gemini-embedding-001 model with correct dimensions

fix: use gemini-embedding-001 model with correct dimensions #7

name: Build and Publish Docker Images
on:
push:
branches: [main]
tags: ['v*']
workflow_dispatch:
env:
REGISTRY: ghcr.io
KETTL_IMAGE: ghcr.io/${{ github.repository }}
MEM0_IMAGE: ghcr.io/${{ github.repository }}-mem0
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for kettl
id: meta-kettl
uses: docker/metadata-action@v5
with:
images: ${{ env.KETTL_IMAGE }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix=sha-
- name: Build and push kettl
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta-kettl.outputs.tags }}
labels: ${{ steps.meta-kettl.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Extract metadata for kettl-mem0
id: meta-mem0
uses: docker/metadata-action@v5
with:
images: ${{ env.MEM0_IMAGE }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix=sha-
- name: Build and push kettl-mem0
uses: docker/build-push-action@v5
with:
context: .
file: ./mem0.Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta-mem0.outputs.tags }}
labels: ${{ steps.meta-mem0.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max