From ec7cf62d7983a2beb4379aa2b871776e05a77098 Mon Sep 17 00:00:00 2001 From: Sarah Wooders Date: Wed, 17 Apr 2024 16:55:07 -0700 Subject: [PATCH] fix: push/pull container from `memgpt/memgpt-server:latest` (#1267) --- .github/workflows/docker-image.yml | 7 ++++--- compose.yaml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 0f084a5d..147c35ae 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -10,18 +10,19 @@ 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 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/memgpt-server:$CURRENT_VERSION + docker build . --file Dockerfile --tag memgpt/memgpt-server:$CURRENT_VERSION --tag memgpt/memgpt-server:latest docker push memgpt/memgpt-server:$CURRENT_VERSION + docker push memgpt/memgpt-server:latest diff --git a/compose.yaml b/compose.yaml index afacf004..4135eef8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -13,7 +13,7 @@ services: - "5432:5432" memgpt_server: - image: memgpt/memgpt-server:0.3.7 + image: memgpt/memgpt-server:latest depends_on: - pgvector_db environment: