Last active
August 26, 2017 11:24
-
-
Save fisshy/f898cafe3366cd175da6323709bb0613 to your computer and use it in GitHub Desktop.
Bitbucket pipline for FTP Publishing.
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
# 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