In my config.yml I add an SSH key with the - add_ssh_keys command.
How do I pass the keys to a docker container? I use the WordPress CLI docker container and I would like to do some operations with it that require ssh. But I can’t figure out how to pass the SSH key to my docker container that runs the WP CLI.
Initially I was using a machine executor. I mounted the ssh keys, however this let to a permission problem… so I switched to a standard circleci/php image and manually install wp cli. Seems to be an easy workaround.