feat: add docker nightly publish and use letta/letta repo (#2005)
This commit is contained in:
27
.github/workflows/docker-image-nightly.yml
vendored
Normal file
27
.github/workflows/docker-image-nightly.yml
vendored
Normal 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
|
||||
8
.github/workflows/docker-image.yml
vendored
8
.github/workflows/docker-image.yml
vendored
@@ -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
|
||||
|
||||
@@ -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...")
|
||||
|
||||
@@ -56,7 +56,7 @@ DEVELOPMENT_LOGGING = {
|
||||
"propagate": False,
|
||||
},
|
||||
"uvicorn": {
|
||||
"level": "INFO",
|
||||
"level": "CRITICAL",
|
||||
"handlers": ["console"],
|
||||
"propagate": False,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user