---
title: Top 5 strategy to optimize the build and CI/CD process. Having a…
type: post
date: 2022-10-05
source: linkedin
original_url: "https://www.linkedin.com/feed/update/urn%3Ali%3AgroupPost%3A4658452-6983372634755354624"
summary: Top 5 strategy to optimize the build and CI/CD process. Having a optimized CI/CD process results in faster, efficient and cost effective builds. Here are Top 5 things to start with for CI/CD optimization – Build Lean Container Images – Separate building the…
draft: false
---

Top 5 strategy to optimize the build and CI/CD process. Having a optimized CI/CD process results in faster, efficient and cost effective builds.

Here are Top 5 things to start with for CI/CD optimization –

Build Lean Container Images – Separate building the application from building its runtime layer and build form minimal base images Reference –  https://lnkd.in/dEfQTpdZ

Using a cache like Kaniko with your build to cache container build artifacts .Kaniko works with all major cloud container registry. Reference – https://lnkd.in/dVcrwN4z

Selective deployment based on last run and changes – Reference – https://lnkd.in/dd3Cq32c

Minimize dependency and exclude files not required by build using vendor supported .ignore files – Reference – ( For docker, refer to BuildKit and .dockerignore , Link – https://lnkd.in/duxNrceV )

Move towards Green Ops – Understand the carbon impact of your builds and schedule – batch changes for build, leverage green regions and timelines. Participate in the Green Software Foundation Hackathon to build sustainable applications https://lnkd.in/dUC8geyd

Reference - https://lnkd.in/dMGpCwPA