Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🐋 ci: Update Docker image removal command in deploy workflow

Danny Avila8458401ce651
diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml
index ef02e4decc..ed56fa4d82 100644
--- a/.github/workflows/deploy-dev.yml
+++ b/.github/workflows/deploy-dev.yml
@@ -30,17 +30,15 @@ jobs:
DO_USER: ${{ secrets.DO_USER }}
run: |
ssh -o StrictHostKeyChecking=no ${DO_USER}@${DO_HOST} << EOF
- sudo -i -u danny bash << EEOF
cd ~/LibreChat && \
git fetch origin main && \
- npm run stop:deployed && \
- docker images -a | grep "librechat" | awk '{print \$3}' | xargs docker rmi && \
- npm run update:deployed && \
+ sudo npm run stop:deployed && \
+ sudo docker images --format "{{.Repository}}:{{.ID}}" | grep -E "lc-dev|librechat" | cut -d: -f2 | xargs -r sudo docker rmi -f || true && \
+ sudo npm run update:deployed && \
git checkout dev && \
git pull origin dev && \
git checkout do-deploy && \
git rebase dev && \
- npm run start:deployed && \
+ sudo npm run start:deployed && \
echo "Update completed. Application should be running now."
- EEOF
EOF