title: Get latest tag in .gitlab-ci.yml for Docker build
body: <p>I want to add a tag when building a Docker image, I'm doing this so far but I do not know how to get the latest tag on the repository being deployed.</p>
  
  <pre><code>docker build -t company/app .
  </code></pre>
  
  <p>My goal
      docker build -t company/app:$LATEST_TAG_IN_REPO? .</p>