Add git hash generated version numbers for test builds
Let's add Teleports Version Magic to all app templates.
It follows a simple rule:
- If the last commit is tagged, the tag is used as version (without the first character). Ex: tag is
v1.3.2
, so version becomes1.3.2
- Otherwise, the last tag is used, but appended by the current date. Ex: last tag was
v1.3.2
and date is 2019-09-18 07:25:23, so version becomes1.3.2.190918072523