diff --git a/task b/task index 1ed45ab5..06f49808 100755 --- a/task +++ b/task @@ -963,6 +963,8 @@ function test-container() { if [ ! -f "tmp/ed25519" ]; then ssh-keygen -t ed25519 -C admin@example.com -f tmp/ed25519 -N "" fi + eval "$(ssh-agent -s)" + ssh-add tmp/ed25519 || (entrypoint-log "Dumping tmp/ed25519 content:" && cat tmp/ed25519) GIT_SSH_PRIVATE_KEY=$(cat tmp/ed25519 | base64 -w0) GIT_SSH_PUBLIC_KEY=$(cat tmp/ed25519.pub) fi