debuglevel / greeting-microservice

Micronaut microservice template written in Kotlin
The Unlicense
5 stars 2 forks source link

gitlab ci/cd with dots in docker tags #27

Closed debuglevel closed 2 years ago

debuglevel commented 2 years ago

https://github.com/debuglevel/greeting-microservice/blob/14dd3dee011c176b1cdc0ffe6de2dbd671423ed4/.gitlab-ci.yml#L14

This could be more or less safely be $CI_COMMIT_REF_NAME, which would a tag "0.0.3" not change to "0-0-3".

debuglevel commented 2 years ago

it would though break on some uncommon branch/tags like "features/whoop". maybe there is some regexp or sed which convert between git and docker allowed characters