lib/vx/builder/script/prepare.rb in vx-builder-0.0.24 vs lib/vx/builder/script/prepare.rb in vx-builder-0.0.25
- old
+ new
@@ -38,9 +38,14 @@
i << "chmod 0750 #{git_ssh_file}"
i << "export GIT_SSH=#{git_ssh_file}"
i << scm.fetch_cmd
i << "unset GIT_SSH"
+
+ i << 'echo "Starting SSH Agent"'
+ i << 'eval "$(ssh-agent)"'
+ i << "ssh-add $VX_PRIVATE_KEY"
+
i << "cd #{repo_path}"
end
app.call env
end