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: deploy test server post-dev image build pt. 2

Danny Avila8a9476a7953a
diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml
index 457f6b8ceb..25a2e7f746 100644
--- a/.github/workflows/deploy-dev.yml
+++ b/.github/workflows/deploy-dev.yml
@@ -17,15 +17,19 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- - name: Install doctl
- uses: digitalocean/action-doctl@v2
+ - name: Install SSH Key
+ uses: shimataro/ssh-key-action@v2
with:
- token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
+ 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: |
- doctl compute ssh ${{ secrets.DO_DROPLET_NAME }} --ssh-command '
- sudo -i -u danny bash << EOF
+ ssh -o StrictHostKeyChecking=no ${DO_USER}@${DO_HOST} << EOF
+ sudo -i -u danny bash << EEOF
cd ~/LibreChat && \
git fetch origin main && \
git checkout do-deploy && \
@@ -33,5 +37,5 @@ jobs:
npm run update:deployed && \
npm run start:deployed && \
echo "Update completed. Application should be running now."
+ EEOF
EOF
- '