Skip to content

Instantly share code, notes, and snippets.

@freshface
Created January 28, 2019 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshface/c71450cac8f8f10f0033193c66a74017 to your computer and use it in GitHub Desktop.
Save freshface/c71450cac8f8f10f0033193c66a74017 to your computer and use it in GitHub Desktop.
image: php:7.2.3
pipelines:
custom: # Pipelines that are triggered manually via the Bitbucket GUI
init: # -- First time init
- step:
caches:
- composer
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp init --user "$FTP_USERNAME" --passwd "$FTP_PASSWORD" $FTP_HOST -v
deploy-all: # -- Deploys all files from the selected commit
- step:
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user "$FTP_USERNAME" --passwd "$FTP_PASSWORD" $FTP_HOST -v --all
branches: # Automated triggers on commits to branches
master: # -- When committing to master branch
- step:
deployment: staging
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user "$FTP_USERNAME" --passwd "$FTP_PASSWORD" $FTP_HOST -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment