feat: add docker nightly publish and use letta/letta repo (#2005)

This commit is contained in:
Sarah Wooders
2024-11-06 22:28:21 -08:00
committed by GitHub
parent 8fe4c1baef
commit 66a9539346
4 changed files with 35 additions and 6 deletions

View File

@@ -0,0 +1,27 @@
name: Docker Image CI (nightly)
on:
schedule:
- cron: '35 10 * * *' # 10:35am UTC, 2:35am PST, 5:35am EST
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Build and push the Docker image (letta)
run: |
docker build . --file Dockerfile --tag letta/letta:nightly
docker push letta/letta:nightly

View File

@@ -28,10 +28,10 @@ jobs:
docker push memgpt/letta:latest
- uses: actions/checkout@v3
- name: Build and push the Docker image (lettaai)
- name: Build and push the Docker image (letta)
run: |
# Extract the version number from pyproject.toml using awk
CURRENT_VERSION=$(awk -F '"' '/version =/ { print $2 }' pyproject.toml | head -n 1)
docker build . --file Dockerfile --tag lettaai/letta:$CURRENT_VERSION --tag lettaai/letta:latest
docker push lettaai/letta:$CURRENT_VERSION
docker push lettaai/letta:latest
docker build . --file Dockerfile --tag lettaai/letta:$CURRENT_VERSION --tag letta/letta:latest
docker push letta/letta:$CURRENT_VERSION
docker push letta/letta:latest

View File

@@ -578,4 +578,6 @@ class SQLLiteStorageConnector(SQLStorageConnector):
def attach_base():
# This should be invoked in server.py to make sure Base gets initialized properly
# DO NOT REMOVE
print("Initializing database...")
from letta.utils import printd
printd("Initializing database...")

View File

@@ -56,7 +56,7 @@ DEVELOPMENT_LOGGING = {
"propagate": False,
},
"uvicorn": {
"level": "INFO",
"level": "CRITICAL",
"handlers": ["console"],
"propagate": False,
},