Skip to content

Commit

Permalink
pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Staněk committed Oct 16, 2024
1 parent 0c00cff commit 515658f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
apt-get -y install libssh2-1-dev
pecl install pecl.php.net/ssh2-1.4.1
echo extension=ssh2.so > /usr/local/etc/php/conf.d/ssh2.ini
echo "${{ secrets.DEPLOY_SSH_KEY }}" > sshkey.priv
echo "${{ secrets.DEPLOY_SSH_KEY }}" > id_rsa
ssh-keygen -f id_rsa -y > id_rsa.pub
- name: Deploy
run: phing deploy
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
<target name="deploy:ssh">
<echo message="${comment}..."/>
<echo message="${command}"/>
<ssh host="${deploy.ssh.host}" port="${deploy.ssh.port}" username="${deploy.ssh.username}" privkeyfile="sshkey.priv"
<ssh host="${deploy.ssh.host}" port="${deploy.ssh.port}" username="${deploy.ssh.username}" privkeyfile="id_rsa" pubkeyfile="id_rsa.pub"
command="${command}"/>
</target>

Expand Down

0 comments on commit 515658f

Please sign in to comment.