Please note that the checkout step is currently broken when caching the .git directory and you try to build a tag:
checkout
.git