mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-25 12:48:53 +01:00
* 🔧 fix: Update ProgressText and ToolCall components for improved error handling and localization * 🔧 chore: Format ESLint configuration for improved readability and remove unused rule * 🔧 refactor: Simplify ProgressText component logic for better readability and maintainability * 🔧 refactor: Update ProgressText and ToolCall components for improved layout consistency * 🔧 refactor: Simplify icon rendering in TTS components and enhance button rendering logic in HoverButtons * 🔧 refactor: Update placeholder logic in VariableForm component to simply use variable name * fix: .docx. .pptx Mistral OCR Error with `image_limit=0` * chore: Update deploy workflow to include conditions for successful dev branch deployment and streamline deployment steps * ci: Set image_limit to 0 in MistralOCR service tests for consistent behavior
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: Update Test Server
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: ["Docker Dev Branch Images Build"]
|
|
types:
|
|
- completed
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
github.repository == 'danny-avila/LibreChat' &&
|
|
(github.event_name == 'workflow_dispatch' ||
|
|
(github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'dev'))
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install SSH Key
|
|
uses: shimataro/ssh-key-action@v2
|
|
with:
|
|
key: ${{ secrets.DO_SSH_PRIVATE_KEY }}
|
|
known_hosts: ${{ secrets.DO_KNOWN_HOSTS }}
|
|
|
|
- name: Run update script on DigitalOcean Droplet
|
|
env:
|
|
DO_HOST: ${{ secrets.DO_HOST }}
|
|
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 && \
|
|
git checkout dev && \
|
|
git pull origin dev && \
|
|
git checkout do-deploy && \
|
|
git rebase dev && \
|
|
npm run start:deployed && \
|
|
echo "Update completed. Application should be running now."
|
|
EEOF
|
|
EOF
|