Last active
August 16, 2021 08:54
-
-
Save Snaver/0cc44ecb9e7f82c0a74f338aa00983eb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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 |
This file contains hidden or 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
/.* | |
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