phish108 / autotag-action

A lightning fast autotagger for semver tagging in github actions
MIT License
14 stars 14 forks source link

allow for date-time based tags #151

Open phish108 opened 2 years ago

phish108 commented 2 years ago

Usecase For docker containers semver is not always the best way of tagging. Instead date tags are used to indicate the most recent release (by date). In order to have date versions sortable, the date should be in reverse order (yyyy-mm-dd).

add a style parameter.

style: 
    description: "choose versioning style"
    required: false
    default: "semver"

Potential values:

isodatetime uses a dash for the hour-minute separator instead of the colon. This is because the colon is forbidden with container labels.