problem: Docker latest tag is misleading
This commit is contained in:
@@ -190,9 +190,6 @@ jib {
|
||||
'snapshot'
|
||||
].join('')
|
||||
tags = [project.version].with (true) {
|
||||
if (project.version.toString().endsWith(".0")) {
|
||||
add "latest"
|
||||
}
|
||||
add "t"+ DateTimeFormatter.ofPattern("yyyyMMddHHmm").withZone(ZoneId.of('UTC')).format(Instant.now())
|
||||
add project.version.toString().replaceAll('(\\d+\\.\\d+).+', '$1')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user