Skip to content

Instantly share code, notes, and snippets.

@marcosgz
Created May 11, 2022 15:35
Show Gist options
  • Save marcosgz/7ed3561c7f39f85a2e18216de017a9a4 to your computer and use it in GitHub Desktop.
Save marcosgz/7ed3561c7f39f85a2e18216de017a9a4 to your computer and use it in GitHub Desktop.
SSH Agent forward in order to execute Capistrano deploy
docker-compose run --rm -v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent -e SSH_AUTH_SOCK=/ssh-agent -e BRANCH=master app bundle exec cap staging deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment