mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
ci: deploy test server post-dev image build pt. 2
This commit is contained in:
parent
59ae2914aa
commit
8a9476a795
1 changed files with 10 additions and 6 deletions
16
.github/workflows/deploy-dev.yml
vendored
16
.github/workflows/deploy-dev.yml
vendored
|
|
@ -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
|
||||
'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue