I want to design the bit-bucket pipeline using php for deployement of code from one repo to multiple server locations. Following code is working to deploy the code to repo but I want to update the same code to multiple sever too.
# Pipeline -- bitbucket-pipelines.yml
image: php:7.1.29
pipelines:
custom: # Pipelines that can only be triggered manually
master:
- step:
name: Deploy to production
deployment: production
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_username --passwd $FTP_password server_address