I've been debating promoting code vs promoting binaries.
Are best practices the same or different in web vs native application.
I seem vaguely to remember a mantra promote code not binaries.
A couple folks in lead nroles at company I work for are saying we should build one docker image with the code and promote that. In this case its webdev and since client side code is served statically they expect it to magically take on dev, test, or prod without recompiling. Think single page framework. I suggested server side rendering or else we would have to post a rest call, put it in a header or in url like host name then handle it in client code. They said all those options had code smells including server side rendering.
I worked in several companies that deliver os's and native applications. Seems to me the promote code not binaries seems to make since because you may have different audiences within for example your dev, test, and prod. If you are testing a new feature in os but you have your staff using these test builds as dog food you compile a separate build with flags turned off so they dont leak the feature for example.
Just wondering what people suggest and what are some definitive resources on it. Seems like its devops territory and I come from mainly coding.
Currently promote code.