cache-in-tekton-pipelines.html (2750B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <!-- Sep 03, 2024 --> 5 <meta charset="utf-8" /> 6 <meta name="viewport" content="width=device-width, initial-scale=1" /> 7 <title>Cache in tekton pipelines</title> 8 <meta name="author" content="Vincent Demeester" /> 9 <meta name="keywords" content="article" /> 10 <meta name="generator" content="Org Mode" /> 11 <link rel="stylesheet" type="text/css" href="/css/2022.css" /> 12 <link rel="stylesheet" type="text/css" href="/css/syntax.css" /> 13 <link rel="stylesheet" type="text/css" href="/css/tekton.css" /> 14 <link rel='icon' type='image/x-icon' href='/images/favicon.ico'/> 15 <meta name='viewport' content='width=device-width, initial-scale=1'> 16 </head> 17 <body> 18 <main id="content" class="content"> 19 <header> 20 <h1 class="title">Cache in tekton pipelines</h1> 21 </header><p> 22 The idea of this article is to explore the different ways to “handle” cache when using 23 <a href="https://github.com/tektoncd/pipeline"><code>tektoncd/pipeline</code></a> or openshift-pipelines. This should evolve as time passes as it will 24 explore what is possible today and what could be done built-in. If someday 25 <a href="https://github.com/tektoncd/pipeline"><code>tektoncd/pipeline</code></a> or any tektoncd component provides this features, this article would 26 be either adapted or <span class="underline">marked as deprecated</span>. 27 </p> 28 <section id="outline-container-Introduction" class="outline-2"> 29 <h2 id="Introduction">Introduction</h2> 30 <div class="outline-text-2" id="text-Introduction"> 31 <p> 32 Cache and <i>caching</i> are very abstract, wide concept. In the context of a CI pipeline, it 33 can take several forms depending on what the pipeline and tasks are doing. If we are 34 building an image, the cache is most likely related to the “base image” and layers re-used 35 accross multiple builds. If we are building a go project, it could be around <i>fetching</i> 36 the dependencies (if no <code>vendor</code> folder) or around build cache (the go compiler cache, to 37 speed the next compilation). 38 </p> 39 </div> 40 </section> 41 </main> 42 <footer id="postamble" class="status"> 43 <footer> 44 <small><a href="/" rel="history">Index</a> • <a href="/sitemap.html">Sitemap</a> • <a href="https://dl.sbr.pm/">Files</a></small><br/> 45 <small class='questions'>Questions, comments ? Please use my <a href="https://lists.sr.ht/~vdemeester/public-inbox">public inbox</a> by sending a plain-text email to <a href="mailto:~vdemeester/public-inbox@lists.sr.ht">~vdemeester/public-inbox@lists.sr.ht</a>.</small><br/> 46 <small class='copyright'> 47 Content and design by Vincent Demeester 48 (<a rel='licence' href='http://creativecommons.org/licenses/by-nc-sa/3.0/'>Some rights reserved</a>) 49 </small><br /> 50 </footer> 51 </footer> 52 </body> 53 </html>