Skip to content

Instantly share code, notes, and snippets.

@sergixnet
Created May 17, 2017 10:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sergixnet/14ae71d7a7da992bd08ebec60d7459aa to your computer and use it in GitHub Desktop.
Save sergixnet/14ae71d7a7da992bd08ebec60d7459aa to your computer and use it in GitHub Desktop.
Bitbucket pipelines
# You can specify a custom docker image from Docker Hub as your build environment.
image: samueldebruyn/debian-git
pipelines:
default:
- step:
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://youtftpsite.com/ftp-path/
# for the second push run this command instead of init
# - git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://youtftpsite.com/ftp-path/
# $FTP_USERNAME and $FTP_PASSWORD are enviroment variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment