We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d66d9c7 commit 06ceeadCopy full SHA for 06ceead
.github/workflows/ci.yml
@@ -20,9 +20,11 @@ jobs:
20
echo "$SSH_PRIVATE_KEY" > keyfile
21
chmod 600 keyfile
22
mkdir -p ~/.ssh
23
- cp known_hosts ~/.ssh/known_hosts
+ chmod 700 ~/.ssh
24
+ ssh-keyscan ec2-3-110-45-72.ap-south-1.compute.amazonaws.com >> ~/.ssh/known_hosts
25
+
26
27
if ! command -v pm2 &> /dev/null; then
28
echo "PM2 not found, installing..."
29
npm install -g pm2
- sh -t -i keyfile [email protected] "sudo bash ~/deploy.sh"
30
+ ssh -t -i keyfile [email protected] "sudo bash ~/deploy.sh"
0 commit comments