Is it possible to do an SCP deployment to multiple servers, or are there any workarounds or recommended practices to accomplish this?
Hello and welcome to the community.
This is possible, you can generate an SSH key pair in the repository's SSH keys page (from Repository settings), add the address of each server in the Known hosts in the same page, and then add the public key to each of your servers.
The process is explained here:
If you want to use a different SSH key pair per server, you can have a look at the section Use multiple SSH keys in your pipeline:
You can use the SCP Deploy pipe for purposes of deployment:
You can use the pipe multiple times in the bitbucket-pipelines.yml file, one for each server.
Please feel free to let me know if you have any questions.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.