Skip to content

Commit 96fe68a

Browse files
committed
fix docker build
1 parent ec806ab commit 96fe68a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/langserve-openai.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ jobs:
4141
cd ~
4242
ssh-add -D
4343
ssh-add ~/.ssh/id_rsa
44+
rm -rf chat-langchain
4445
git clone git@github.com:DeviesDevelopment/chat-langchain.git
4546
cd chat-langchain
4647
git checkout langserve-openai
48+
git pull origin langserve-openai
4749
4850
# Stop and remove the existing container if it exists
4951
docker stop pgvector-container || true
@@ -53,7 +55,7 @@ jobs:
5355
5456
# Build the Docker image
5557
docker rmi -f deviesprbot || true
56-
docker build -t deviesprbot .
58+
docker build -t deviesprbot:latest .
5759
5860
# Create Docker network if it doesn't exist
5961
docker network create langchain-network || true
@@ -84,10 +86,12 @@ jobs:
8486
-e MPLCONFIGDIR="${{ secrets.MPLCONFIGDIR }}" \
8587
-e NLTK_DATA="${{ secrets.NLTK_DATA }}" \
8688
-e XDG_CACHE_HOME="${{ secrets.XDG_CACHE_HOME }}" \
87-
deviesprbot
89+
deviesprbot:latest
8890
8991
# Remove the image
9092
docker rmi -f deviesprbot || true
9193
94+
# Remove the git repo
95+
rm -rf chat-langchain
9296
9397

0 commit comments

Comments
 (0)