Skip to content

Commit

Permalink
pantheon-systems#70: Allow user to override rsync options
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinleblanc authored Feb 28, 2024
1 parent 145c504 commit 79a454a
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 79a454a

Please sign in to comment.