Skip to content

Instantly share code, notes, and snippets.

@Snaver
Last active August 16, 2021 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Snaver/0cc44ecb9e7f82c0a74f338aa00983eb to your computer and use it in GitHub Desktop.
Save Snaver/0cc44ecb9e7f82c0a74f338aa00983eb to your computer and use it in GitHub Desktop.
# Bitbucket Pipelines Configuration file
# https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
# options:
# size: 2x
# max-time: 60
pipelines:
default:
- step:
script:
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
branches:
master:
- step:
name: rsync
script: # https://explainshell.com/explain?cmd=rsync+-zrSlh+--exclude-from%3Ddeployment-exclude-list.txt+.%2F.+%7B%7B+%24remote+%7D%7D
- rsync -zrSlh --stats --exclude-from=deployment-exclude-list.txt $BITBUCKET_CLONE_DIR/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
/.*
bitbucket-pipelines.yml
deployment-exclude-list.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment