Created
May 17, 2017 10:01
-
-
Save sergixnet/14ae71d7a7da992bd08ebec60d7459aa to your computer and use it in GitHub Desktop.
Bitbucket pipelines
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
# 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