Created
January 28, 2019 13:15
-
-
Save freshface/c71450cac8f8f10f0033193c66a74017 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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