How to make a production build without arsov within the same repository?

Broken head could not figure out how to organize the Assembly and deployment of the project (now use networks ci) in such a way that to the master branch, which overflows on the prod, did not get sorcy, but only compiled and minimized js/css
March 23rd 20 at 18:39
1 answer
March 23rd 20 at 18:41
First, I note a couple of points:

1. Do not store in the Gita any derivative of the code. That is inficirovannye scripts, styles, etc. They should be collected from sources at the stage of building and they should not nositsya no changes - all changes only in the source code.
2. You wrote that the customer can edit the css, etc. Then you need to understand that this is not part of your application and your code. It is already user data in the repositories it is not the place. If you have a desire to versioned - you can use them to your git repository.

> I want to have on prod only build of the project without sources.

There are many ways to do it. Alternatively, you can have on the prod project repository and deploy to use it for building a specific instance of a system. Then on the server you have the source be, and will be easy to obtain any version, as that repository, but in instances of the system - only what is necessary. Or, you can CI server to bildit the project and is ready to transmit to the server.
@branson_Nienow my answer to you something not suitable? Write that confuses you, maybe I'll explain my position, or edit the answer. May be you have some questions? I'm the second or third time I come across this question (as it is not the solution) and it turns out that I have already answered it ) - ladarius_Friesen23 commented on March 23rd 20 at 18:44
@ladarius_Friesen23, everything is OK) choose the version with two turnips - branson_Nienow commented on March 23rd 20 at 18:47

Find more questions by tags Continuous deploymentGitLabAssembling projectsGit