steps:
- task: Docker@2
displayName: Build and Push
inputs:
command: buildAndPush
containerRegistry: myAcrServiceConnection
repository: roket
tags: |
02
latest
The above snippet build an image with tag 02 and tag latest from the same source and push it to the azure container registry.
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?