Skip to content

Instantly share code, notes, and snippets.

@fisshy
Last active August 26, 2017 11:24
Show Gist options
  • Save fisshy/f898cafe3366cd175da6323709bb0613 to your computer and use it in GitHub Desktop.
Save fisshy/f898cafe3366cd175da6323709bb0613 to your computer and use it in GitHub Desktop.
Bitbucket pipline for FTP Publishing.
# This is a sample build configuration for Javascript (Node.js).
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:7.8.0
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- npm install
- npm run build
- curl https://raw.githubusercontent.com/git-ftp/git-ftp/master/git-ftp > git-ftp
- chmod 755 git-ftp
- export PATH=".:$PATH"
- git-ftp --version
- git status
- git config git-ftp.syncroot dist/
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://YOUR_IP.94:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment