Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomaht committed Nov 7, 2023
1 parent 2ffd4dc commit 323d012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
mkdir ~/.ssh
touch ~/.ssh/known_hosts
touch ~/.ssh/pkey
ssh-keygen -R "${{ secrets.SECRET_HOST }}"
echo "${{ secrets.SECRET_PUB }}" >> ~/.ssh/known_hosts
echo "${{ secrets.SECRET_PRIVATE_SSH }}" > ~/.ssh/pkey
chmod 600 ~/.ssh/pkey
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/pkey
cat ~/.ssh/known_hosts
ssh ${{ secrets.SECRET_USER }}@${{ secrets.SECRET_HOST }} -p ${{ secrets.SECRET_PORT }} -i ~/.ssh/pkey "touch test.test"

0 comments on commit 323d012

Please sign in to comment.