So I would like to add a secret from my password store instead of a file. When trying to use the @
notation, it fails:
drone secret add --repository my/repo --name ssh_key --data @$(gopass show my/stuff/drone-ci/id_ed25519)
open -----BEGIN: no such file or directory
It does not show errors without the @
:
drone secret add --repository my/repo --name ssh_key --data $(gopass show my/stuff/drone-ci/id_ed25519)
but then drillsters rsync-plugin fails to connect. same effekt when using $(pbpaste)
or $(xclip -out -selection clipboard)
.
The rsync-plugin works fine when creating the secret from the web frontend, pasting the SSH private key from the clipboard or password store.
So I would like to ask for hints how I can use the cli to add a multi-line secret from another command?