Hello,
I'm new to BB Pipelines and I'm and as a first step, I'd like to deploy to my staging server on a push. I get the following error when I push:
bash: ssh: command not found
Is SSH not working or is this referring to the bash script?
My config file is:
image: php:7.1.29
pipelines:
default:
- step:
name: Install ssh
script:
- apt-get update -y
- apt-get install -y ssh
- step:
name: Deploy to Staging
script:
- sh deploy.sh | ssh username@12.34.567.890
- echo "Deploy step finished"
Am I approaching this incorrectly?
Hi Peter,
Each step is independent and executes in a fresh docker environment, so even though you're installing ssh in the first step, it won't be available in the second step.
My suggestion is to either install ssh and run your deploy script in the same step, or use a base docker image that already has ssh installed.
Hope this helps!
Antoine
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.