Hy,
I want to build up an automated deploy process for my PHP project.
I tried to use pipelines with git-ftp, so whenever I push something to my repo it copies the files up to the server via FTP.
The full process is workin on local environment (On windows 10), but it does not want to work on pipelines.
I've tries these docker images:
acdaic4v/ubuntu-git
My pipeline is the following:
pipelines: branches: master: - step: script: - apt-get update - apt-get -qq install git-ftp - git config git-ftp.url $FTP_STAGING_PATH - git config git-ftp.user $FTP_USERNAME - git config git-ftp.password $FTP_PASSWORD - git ftp push -v production: - step: script: - apt-get update - apt-get -qq install git-ftp - git config git-ftp.url $FTP_PRODUCTION_PATH - git config git-ftp.user $FTP_USERNAME - git config git-ftp.password $FTP_PASSWORD - git ftp push -v
(When I've used marlosoft/git-ftp I've skipped the git-ftp install!)
Also I've tries the following formula:
pipelines: default: - step: script: - apt-get update - apt-get -qq install git-ftp - git ftp init --user $FTP_USERNAME --pass $FTP_PASSWORD ftp://ftpx.forpsi.com/subs/staging
All of the tries are resulted an error:
curl: (67) Access denied: 530 fatal: Could not get last commit. Network down? Wrong URL? Use 'git ftp init' for the inital push., exiting...
The git-ftp already inited from the local env.
Any suggestions, how could it work?
Thanks, David.
Community moderators have prevented the ability to post new answers.
I don't know if Bitbucket made those port open for Pipelines, but I've found a video which show me how to configure pipelines for git-ftp. This suggessts that the ports are open.
On the server side, the ports are certainly open.
Yes, I know that this is not the best way to deploy, but this is a hosted server that only grant us FTP connection :\
FTP requires 2 TCP ports to be open: 21, for controls, and 20, for the actual data transfer. Are both of those open to the Pipelines systems?
Also: FTP is not a secure protocol. Are there any other protocols available to deploy to that system?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.