Every environment should use the same scripts

You should use the same exact script in all the environments, as this will ensure that the build and deployment process is being done the same way in each environment. If you have a different script for each environment, then you cannot ensure that the particular script being run is behaving the same way in a different environment. The deployment scripts that developers run in their local environments should be the same as those run in other environments, or else you risk environment leakage. What we mean here is that the developers environment might have specific environment variables set than the deployment script or each environment, such as development, staging, and production, might have ...

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.