Hi Team,
I am using bitbucket runner in my pipelines. can you guide us to deploy this artifacts in private server(i.e doesnot contain public ip) using scp pipe or pipelne script
Hi @sri harsha and welcome to the community!
What type of runner are you using? Is it Linux Docker, Linux Shell, MacOS, or Windows runner?
Pipes can only be used with Linux Docker runners. If you are using this type of runner, you can check the README of the scp-deploy pipe here:
This has details and examples of using the pipe. In the SERVER variable, you will need to use the private IP of the server you want to deploy to.
If you are using a Linux Shell, MacOS, or Windows runner, the builds don't run in Docker containers but directly on the host (in Bash for the first two and PowerShell for the latter). The commands in your bitbucket-pipelines.yml file script are Linux or PowerShell commands. So, you could use an scp command in your yml file to deploy to a private server. The scp command can be used also with Linux Docker runners.
You can check the man page of the scp command here:
Please feel free to reach out 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.