CI: use unprivledged user
All checks were successful
Update Website / update (push) Successful in 3s

This commit is contained in:
Kagura 2024-11-24 10:08:42 +08:00
parent a9352ddd09
commit e374c05671

View file

@ -29,4 +29,4 @@ jobs:
echo "#!/bin/bash" > /tmp/ssh-pass.sh echo "#!/bin/bash" > /tmp/ssh-pass.sh
echo "echo $SSH_PASSWORD" >> /tmp/ssh-pass.sh echo "echo $SSH_PASSWORD" >> /tmp/ssh-pass.sh
chmod +x /tmp/ssh-pass.sh chmod +x /tmp/ssh-pass.sh
DISPLAY=:0 ssh -o StrictHostKeyChecking=no "root@$SSH_HOST" "cd ReactLearn; git pull; docker compose restart" DISPLAY=:0 ssh -o StrictHostKeyChecking=no "app-runner@$SSH_HOST" "cd ReactLearn; git pull; docker compose restart"