I'm trying to establish some devops patterns around publishing services in ArcGIS Server without a Windows machine with access to our production enterprise geodatabase from which to publish my Pro documents.
Currently, from my development machine, I can configure my aprx with my layers pointing to dev tables. I can then get those aprx folders over to my production (Linux) Server via source control, and run a script with arcpy.mp.updateConnectionProperties to swap all my dev tables with production tables. Then i can go through the documented arcpy process to script map service publishing.
However, those arpx folders get large, and storing them in source control seems unnecessary. I'm curious how I might instead save an offline service definition file, pass that through source control, and use arcpy to swap out the enterprise geodatabase connection information, and publish that.
Any tips or documented workflows someone can point me to?