Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#70: Allow user to override rsync options [FEAT-1348] #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/@orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ jobs:
description: "Determines whether or not every build will re-clone content from the environment set in terminus_clone_env. Set to false if cloning the database and files means builds are taking too long."
default: true
type: boolean
rsync_opts:
description: "Options to pass to the rsync command when copying site source into the Pantheon repository to prepare for commit and deploy."
default: "--delete"
type: string

executor:
name: default
Expand Down Expand Up @@ -212,7 +216,7 @@ jobs:
- run:
name: Copy code to the local clone of the Pantheon repository
command: |
rsync -av --exclude='.git' << parameters.directory_to_push >>/ $PANTHEON_REPO_DIR --delete
rsync -av --exclude='.git' << parameters.directory_to_push >>/ $PANTHEON_REPO_DIR << parameters.rsync_opts >>
# For easier debugging, show what files have changed.
git -C $PANTHEON_REPO_DIR status

Expand Down