This commit is contained in:
@@ -32,5 +32,8 @@ jobs:
|
|||||||
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
|
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
ssh-keyscan -H $DEPLOY_HOST >> ~/.ssh/known_hosts 2>/dev/null
|
ssh-keyscan -H $DEPLOY_HOST >> ~/.ssh/known_hosts 2>/dev/null
|
||||||
|
|
||||||
|
tar -czf /tmp/dist.tar.gz -C dist .
|
||||||
ssh ${DEPLOY_USER}@${DEPLOY_HOST} "rm -rf /volume1/web/app/*"
|
ssh ${DEPLOY_USER}@${DEPLOY_HOST} "rm -rf /volume1/web/app/*"
|
||||||
scp -r dist/* ${DEPLOY_USER}@${DEPLOY_HOST}:/volume1/web/app/
|
scp /tmp/dist.tar.gz ${DEPLOY_USER}@${DEPLOY_HOST}:/volume1/web/app/
|
||||||
|
ssh ${DEPLOY_USER}@${DEPLOY_HOST} "cd /volume1/web/app && tar -xzf dist.tar.gz && rm dist.tar.gz"
|
||||||
|
|||||||
Reference in New Issue
Block a user