Viable Versioner keeps your commits in a human-friendly format.
When deploying a commit, just call: [POST]/versions/create with the following params:
commit_hash | string | required |
repository | string | required |
repository_version | string | optional |
deployment_date | string (date_time format) | optional |
If successful, it returns a version in the x.x.x format.
If a repository_version is sent in the request, a check for both version and repository will be made. If the repository_version is not already taken for that repository, it saves as it is, else, it's incremented and the correct version is saved and returned.
Accessing the base url in the browser, you can see the whole list of versions saved.
By default, the route can be accessed by anyone, however, it can be restricted by enabling Laravel's Passport with php artisan passport:keys and adding the auth-api middleware to the route.
Clients for the api can be managed by uncommenting line #43 from layouts/app.blade.php.