Skip to content

Commit

Permalink
mount ssh/known_hosts like in webfactory/ssh-agent#11
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hernandez-scopely committed Apr 26, 2021
1 parent 3379f68 commit b7c5988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/index.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/model/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ class Docker {
--volume "/home/runner/work/_temp/_github_workflow":"/github/workflow" \
--volume "${workspace}":"/github/workspace" \
--volume "/home/runner/.ssh":"/root/.ssh" \
--volume "/home/runner/.ssh/known_hosts":"/root/.ssh/known_hosts" \
${useHostNetwork ? '--net=host' : ''} \
${githubToken ? '--env USE_EXIT_CODE=false' : '--env USE_EXIT_CODE=true'} \
${image} /bin/bash -c "apt-get update && apt-get --assume-yes install ssh"`;
${image} /bin/bash -c "apt-get update && apt-get --assume-yes install ssh; ssh-add -l && ssh -T [email protected]"`;

await exec(command, undefined, { silent });
}
Expand Down

0 comments on commit b7c5988

Please sign in to comment.