M
M
mirexdoors2019-12-11 11:51:58
Software Deployment
mirexdoors, 2019-12-11 11:51:58

How to make a bitbucket pipeline to hosting with php 5.3?

Hello! you need to deploy to ftp via bitbucket pipelines.
I do it with git-ftp. When the repository is initialized, the following happens:
[38 of 3357] Buffered for upload 'adminparrrot/controller/feed/google_sitemap.php'.
[39 of 3357] Buffered for upload 'adminparrrot/controller/localization/city.php'.
[40 of 3357] Buffered for upload 'adminparrrot/controller/localization/country.php'.
Uploading ...
fatal: Could not upload files., exiting...
All permissions are correct. The only thing that PHP 5.3 is spinning on the hosting, but if you specify it as an image, it falls on:

WARNING: The following packages cannot be authenticated!
  git-ftp
E: There are problems and -y was used without --force-yes

image: php:5.3
pipelines:
  branches: 
    master:                 
      - step:                  
          name: push to ftp server
          deployment: staging
          script:
          - apt-key update
          - apt-get update
          - apt-get -qq install git-ftp
          - git ftp init  --user $FTP_USERNAME --passwd $FTP_PASSWORD  ftp://$FTP_HOST
          - git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://$FTP_HOST

to hosting with php 5.6 (and image 5.6) - everything works correctly

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question