title: Azure-DevOps: Automatic increment docker tag in Azure Pipeline
body: <pre><code>steps:
  - task: Docker@2
    displayName: Build and Push
    inputs:
      command: buildAndPush
      containerRegistry: myAcrServiceConnection
      repository: roket
      tags: |
        02
        latest
  </code></pre>
  
  <p>The above snippet build an image with tag 02 and tag latest from the same source and push it to the azure container registry. </p>
  
  <p>How can I replace the 02 in the tags to an automatic increment style. For example it will fist fetch the remote or local catch and increment 1 to the tag?</p>