Skip to content

Commit

Permalink
feat: add workflow to also publish to memgpt repository (#1953)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahwooders authored Oct 29, 2024
1 parent c372234 commit 0276b7c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0276b7c

Please sign in to comment.