jeudi 24 décembre 2020

Bitbucket CI Pipelines for deploying Laravel Project on CPanel

First time working on pipelines and CI in general so I may stuff that are wrong. I was trying to build a pipeline to automate deployment for our project on CPanel (Don't ask me, client already had that setup when I joined). Here's what our bitbucket-pipelines.yml file looks like atm:

image: php:7.3-fpm

pipelines:
  branches:
    staging:
      - step:
          caches:
            - composer
          artifacts:
            - storage/**
            - vendor/**
            - public/**
            - .env
          script:
            - apt-get update && apt-get install -qy git curl libmcrypt-dev -y libzip-dev zip
            - yes | pecl install mcrypt-1.0.2
            - docker-php-ext-install zip
            - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=1.10.19
            - composer install
            - sleep 5
            - pipe: atlassian/ftp-deploy:0.3.0 
              variables:
              USER: $FTP_USER
              PASSWORD: $FTP_PASSWORD
              SERVER: $FTP_SERVER
              REMOTE_PATH: $FTP_REMOTE_PATH
          services:
            - docker

It's important to note that the project is built on Laravel 5.5 and I have been urging him to upgrade the version to atleast Laravel 6 since it is the LTS.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2KQ5CxV
via IFTTT

Aucun commentaire:

Enregistrer un commentaire