Two simple pipelines, one using rsync
and one using git-ftp
.
This can be used on a bitbucket repo that contains two folders for:
- /themes/
- /plugins/
Both pipelines contain 2 automated pushes on commits/merges for Production & Staging branches. You can also call them manually by their "custom" pipelines whenever you want to.
- Copy & commit the
rsync-bitbucket-pipelines.yml
while renaming it tobitbucket-pipelines.yml
- Copy & commit the
excludes.txt
- Add Repository variables for:
PRODUCTION_SSH_USER
,PRODUCTION_HOST
,PRODUCTION_FOLDER
,STAGING_SSH_USER
,STAGING_HOST
,STAGING_FOLDER
- Add your SSH key.
Note that the rsync method uses --delete
it is set up to remove all files from the remote /themes & /plugins folder if they don't exist on the repo as well.
- Copy & commit the
git-ftp-bitbucket-pipelines.yml
while renaming it tobitbucket-pipelines.yml
- Copy & commit the
.git-ftp-ignore
- Add Repository variables for:
PRODUCTION_USER
,PRODUCTION_PASS
,PRODUCTION_HOST
,PRODUCTION_FOLDER
,STAGING_USER
,STAGING_PASS
,STAGING_HOST
,STAGING_FOLDER