Last active
April 29, 2019 20:07
-
-
Save StephanWagner/1ded9efdb0df2be27eea883136879ecf to your computer and use it in GitHub Desktop.
Deploy websites with Bitbucket pipelines and Git-ftp. More infos here: https://stephanwagner.me/deploy-websites-with-bitbucket-pipelines-and-git-ftp
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
image: wagnerstephan/bitbucket-git-ftp:latest | |
pipelines: | |
custom: | |
init: | |
- step: | |
caches: | |
- node | |
script: | |
- npm install | |
- npm run gulp | |
- npm run test | |
- git reset --hard | |
- git ftp init -u "$FTP_USERNAME" -p "$FTP_PASSWORD" ftp://$FTP_HOST | |
deploy: | |
- step: | |
caches: | |
- node | |
script: | |
- npm install | |
- npm run gulp | |
- npm run test | |
- git reset --hard | |
- git ftp push -u "$FTP_USERNAME" -p "$FTP_PASSWORD" ftp://$FTP_HOST --all | |
branches: | |
master: | |
- step: | |
name: Deploy production | |
deployment: production | |
caches: | |
- node | |
script: | |
- npm install | |
- npm run gulp | |
- npm run test | |
- git reset --hard | |
- git ftp push -u "$FTP_USERNAME" -p "$FTP_PASSWORD" ftp://$FTP_HOST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment