Fail to pull git from Envoy task

Posted 2 years ago by petehouston

I have this Envoy task,

    echo "Going to server path..."
    cd {{$projects_path}}/server
    echo "Get git status..."
    git status
    git pull origin master

It works for cd and git status, but fails on git pull origin master with following error:

Permission denied (publickey).
fatal: Could not read from remote repository.

If I remote to server and execute all commands manually, they are all fine. The remote server has already setup for pulling source from Git without password prompt. Anyone has idea about this?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.