ssh-agent icon indicating copy to clipboard operation
ssh-agent copied to clipboard

Is there a way to setup this without having a key specified?

Open misilot opened this issue 1 year ago • 0 comments
trafficstars

So what I would like to do is create a reusable workflow that will load the ssh-agent if the private key has been passed, but be able to have the ssh option always defined in the GHA for the docker/build-push-action action.

          ssh: |
            default=${{ env.SSH_AUTH_SOCK }}

Or is there a better way to create a reusable workflow that can do handle when you pass in a private key or when you don't.

Thanks!

misilot avatar Apr 17 '24 16:04 misilot