title: Helm Set Docker Image Tag Dynamically
body: <p>I am pushing Docker images to our private registry via Jenkins with the following command:  </p>
  
  <pre><code>def dockerImage = docker.build("repo/myapp:${env.BUILD_NUMBER}")
  </code></pre>
  
  <p>(<code>BUILD_NUMBER</code> increases after every build.)</p>
  
  <p>Because I am new to using Helm, I could not decide how should I give the tag for images in <code>values.yaml</code>.</p>
  
  <p>I would like to deploy my app to multiple environments such as:</p>
  
  <ul>
  <li><code>dev</code></li>
  <li><code>test</code></li>
  <li><code>prod</code></li>
  </ul>
  
  <p>Let's say I was able to deploy my app via Helm to <code>dev</code>, and the latest <code>BUILD_NUMBER</code> is:</p>
  
  <ul>
  <li>100 for <code>dev</code></li>
  <li>101 for <code>test</code></li>
  <li>102 for <code>prod</code></li>
  </ul>
  
  <p>What should be the tag value, then?</p>
  
  <pre><code> image:
    repository: registryt/myrepo/image
    tag: 
  </code></pre>