Many of the approaches to deployment in the cloud, apply to on-premises deployment too.
Furthermore, when using cloud consider:
- rightsize - avoid over-provisioning. Using less hardware, means providers (long term) buy less kit which reduces (embodied) Carbon emissions as well as water, minerals etc used in production. Scale up if really needed but always scale down when resources not needed. The use of "burst-able" instances may often prove more environmentally friendly than use of auto-scaling.
- go async - only run commands when triggered. Supports higher sharing of underlying hardware, which reduces embodied emissions as well as water, minerals etc used in production. Examples are use of event driven architecture, and serverless via (e.g.) Azure functions, AWS Lambda functions.