Skip to content

Commit 06ceead

Browse files
committed
workflow updated
1 parent d66d9c7 commit 06ceead

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ jobs:
2020
echo "$SSH_PRIVATE_KEY" > keyfile
2121
chmod 600 keyfile
2222
mkdir -p ~/.ssh
23-
cp known_hosts ~/.ssh/known_hosts
23+
chmod 700 ~/.ssh
24+
ssh-keyscan ec2-3-110-45-72.ap-south-1.compute.amazonaws.com >> ~/.ssh/known_hosts
25+
2426
2527
if ! command -v pm2 &> /dev/null; then
2628
echo "PM2 not found, installing..."
2729
npm install -g pm2
28-
sh -t -i keyfile [email protected] "sudo bash ~/deploy.sh"
30+
ssh -t -i keyfile [email protected] "sudo bash ~/deploy.sh"

0 commit comments

Comments
 (0)