Copy files into existing directory to avoid inode change
Build & Deploy / deploy (push) Successful in 33s
Build & Deploy / deploy (push) Successful in 33s
This commit is contained in:
@@ -32,6 +32,5 @@ jobs:
|
|||||||
echo "$SSH_KEY" > ~/.ssh/id_ed25519
|
echo "$SSH_KEY" > ~/.ssh/id_ed25519
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
ssh-keyscan -H pyte.dev >> ~/.ssh/known_hosts
|
ssh-keyscan -H pyte.dev >> ~/.ssh/known_hosts
|
||||||
ssh -i ~/.ssh/id_ed25519 demian@pyte.dev "rm -rf /opt/docker/website/public"
|
scp -i ~/.ssh/id_ed25519 -r public/. demian@pyte.dev:/opt/docker/website/public/
|
||||||
scp -i ~/.ssh/id_ed25519 -r public demian@pyte.dev:/opt/docker/website/
|
ssh -i ~/.ssh/id_ed25519 demian@pyte.dev "chmod -R 755 /opt/docker/website/public"
|
||||||
ssh -i ~/.ssh/id_ed25519 demian@pyte.dev "chmod -R 755 /opt/docker/website/public && docker ps -q --filter name=nginx | xargs -r docker restart"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user