I am using Bitbucket Pipeline along with Git-Ftp for months. So far it is really good. Now I have landed into a problem which needs your suggestions.
I have implemented composer packages into the system and I would like to run "composer update" command into the server only when the upload ready file list contents "composer.json" and "composer.lock" file.
For that I believe, I have to run a shell file as a script in the pipeline? The problems are:
Right now, I have a very straight forward pipeline script which puts files into 'public_html' directory of my site. In the server, I do have SSH access credentials and composer is also installed.
# Automated builds.
# Automated build into Development.
name: Automated Development Build
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://$FTP_HOST/public_html/
I could have used Git-Ftp's feature ".git-ftp-include wildcards". But it would upload all contents of the "vendor" directory every time if composer.json/.lock file is changed. I only want to run composer command in the server itself. So I can save pipeline build minutes.
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events