(not sure why my upload isn’t working on that link, but) the only obvious error I can see when looking at that log is:
fatal: unable to access 'https://github.com/discourse/discourse.git/': Could not resolve host: github.com
That doesn’t sound good?
~$ host github.com on the server works OK to resolve it.