Good afternoon everyone!
We are currently running a couple PSU instances test and prod. Today they are both being synced to a single repo with two branches test and main. Both are twoway git syncs. Updating code from test and prod is starting to get messy as certain files depend on other files.
We are looking into configuring prod to be a one-way git sync so it only pulls code from the main branch. This should be easy enough on the PSU side. However, an issue I currently have is that there is a bunch of scripts and config items in the test PSU server I dont want pushed up to the main branch for prod.
I’ve considered using .gitignore for main so certain scripts dont get committed into prod and then leverage something like GitHub actions to handle pull requests for merges into the main branch.
Is anyone out there doing something similar? Have I gone devops crazy?
Hopefully this makes sense.
Thanks,
Michael