From 362176c5edee993e82a66e55ae55cb1b3c3fe184 Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Tue, 29 Oct 2024 10:59:02 -0700 Subject: [PATCH] feat: add workflow to also publish to memgpt repository (#1953) --- .github/workflows/docker-image.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 8aaf4f48..673638be 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -19,7 +19,16 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: actions/checkout@v3 - - name: Build and push the Docker image + - name: Build and push the Docker image (memgpt) + 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 memgpt/letta:$CURRENT_VERSION --tag memgpt/letta:latest + docker push memgpt/letta:$CURRENT_VERSION + docker push memgpt/letta:latest + + - uses: actions/checkout@v3 + - name: Build and push the Docker image (lettaai) run: | # Extract the version number from pyproject.toml using awk CURRENT_VERSION=$(awk -F '"' '/version =/ { print $2 }' pyproject.toml | head -n 1)