pantheon-systems / circleci-orb

Use CircleCI to push code to Pantheon Dev and Multidev Environments
10 stars 18 forks source link

Handle use case where GitHub holds only the contents of wp-content #25

Open JasonHoffmann opened 5 years ago

JasonHoffmann commented 5 years ago

We have a repo syncing to Pantheon that only contains the wp-content folder, and excludes all WordPress core files. So when this orb rsyncs to Pantheon here (https://github.com/pantheon-systems/circleci-orb/blob/master/src/%40orb.yml#L96), it deletes all of the WordPress core files from the multidev site. I've tried a few things with .gitignore but this doesn't seem ideal as it would interfere with upstreams. Is there a way around this?

stevector commented 5 years ago

Huh, that makes sense. I had not accounted for a repo on GitHub setup to contain only the wp-content folder. This case could be accommodated by adding more complexity to the job (configuring the rsync command) but I think I would prefer just making a separate job explicitly for this use case. Let me think on it.

Thanks for testing @JasonHoffmann!