title: Adding Labels to Images with Openshift s2i Binary build
body: <p>I would like to add some labels (commit hash, branch name,...) to images I create using Openshift source-to-image binary build. These labels will have naturally different values for every build.</p>
  
  <p>Currently <code>oc start-build</code> does not even support -e flags to add environment variables. (At least is seems to, it works for Git source, its a bug?)</p>
  
  <p>And for binary build does not supports <code>--build-arg</code> to pass argument for docker file.</p>
  
  <p>The only way I was able to accomplish this to call <code>oc set env bc [build-name]</code> then start the build. And use Label in Dockerfile with values from environment variables.</p>
  
  <p>My question is isn't there a better way to do this? (Ideally in a way that Dockerfile is not necessarily changed) Doesn't s2i supports passing <code>--label</code> to docker build behind? </p>
  
  <p>Thank you.</p>