-
-
Save prayas-sapkota/52b410df0f6204f3e51e1188561c08c5 to your computer and use it in GitHub Desktop.
Bitbucket Pipelines - Deploy via FTP to shared hosting
This file contains hidden or 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: samueldebruyn/debian-git | |
pipelines: | |
custom: # Pipelines that are triggered manually | |
init: # -- First time init | |
- step: | |
script: | |
- apt-get update | |
- apt-get -qq install git-ftp | |
- git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://$FTP_HOST | |
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://$FTP_HOST --all | |
branches: # Automated triggers on commits to branches | |
master: # -- When committing to mast branch | |
- step: | |
script: | |
- apt-get update | |
- apt-get -qq install git-ftp | |
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://$FTP_HOST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment