Tweaking ssh key add functionality
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
622d1afe49
commit
c791e95895
|
@ -52,7 +52,7 @@ run_docker_cp() {
|
|||
|
||||
echo "--- start exec ---"
|
||||
if [ -n "$PLUGIN_EXEC" ]; then
|
||||
docker -H "$REMOTE_DOCKER_HOST" exec "$CONTAINER" sh -c "eval $(ssh-agent) && echo \"$PLUGIN_DEPLOY_KEY\" | ssh-add - && $PLUGIN_EXEC"
|
||||
docker -H "$REMOTE_DOCKER_HOST" exec "$CONTAINER" sh -c "mkdir /root/.ssh && echo $PLUGIN_DEPLOY_KEY > /root/.ssh/id_rsa && chmod -R 600 /root/.ssh && $PLUGIN_EXEC"
|
||||
fi
|
||||
echo "--- end exec ---"
|
||||
|
||||
|
|
Loading…
Reference in New Issue