Skip to content

Instantly share code, notes, and snippets.

@segovia94
Created June 28, 2018 23:46
Show Gist options
  • Save segovia94/255821d990d76e15c330936dce2f908c to your computer and use it in GitHub Desktop.
Save segovia94/255821d990d76e15c330936dce2f908c to your computer and use it in GitHub Desktop.
Bitbucket Pipelines git-ftp recipe
# Push code change to cheap host without git using https://git-ftp.github.io/
image: smartapps/bitbucket-pipelines-php-mysql
pipelines:
branches:
master:
- step:
script:
- apt-get update
- apt-get -qq install git-ftp # Install git-ftp
# - git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://1.1.1.1/public/ # Use this the first time to initialize the repo.
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://1.1.1.1/public/ # Change ftp address per site.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment