I am using the following code in my bitbucket-pipelines.yml
files to remotely deply code to a staging server.
image: php:7.1.1
pipelines:
def
This is a typical scenario where you should use your own Docker image instead of one of the ones provided by Atlassian. (Or search for a Docker image which provides exactly this.)
In your simple case, this Dockerfile should be enough:
FROM php:7.1.1
RUN apt-get update && \
apt-get install -y openssh-client
Then, create a DockerHub account, publish the image and reference it in bitbucket-pipelines.yml
.