File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,15 @@ jobs:
30
30
DO_USER : ${{ secrets.DO_USER }}
31
31
run : |
32
32
ssh -o StrictHostKeyChecking=no ${DO_USER}@${DO_HOST} << EOF
33
- sudo -i -u danny bash << EEOF
34
33
cd ~/LibreChat && \
35
34
git fetch origin main && \
36
- npm run stop:deployed && \
37
- docker images -a | grep " librechat" | awk '{print \$3}' | xargs docker rmi && \
38
- npm run update:deployed && \
35
+ sudo npm run stop:deployed && \
36
+ sudo docker images --format "{{.Repository}}:{{.ID}}" | grep -E "lc-dev| librechat" | cut -d: -f2 | xargs -r sudo docker rmi -f || true && \
37
+ sudo npm run update:deployed && \
39
38
git checkout dev && \
40
39
git pull origin dev && \
41
40
git checkout do-deploy && \
42
41
git rebase dev && \
43
- npm run start:deployed && \
42
+ sudo npm run start:deployed && \
44
43
echo "Update completed. Application should be running now."
45
- EEOF
46
44
EOF
You can’t perform that action at this time.
0 commit comments