diff --git a/build.gradle b/build.gradle index ace5e088..4ddf3523 100644 --- a/build.gradle +++ b/build.gradle @@ -164,9 +164,8 @@ jib { // by default publish as: // dshackle:shapshot, // dshackle:t, - // dshackle: and - // dshackle: - // dshackle:latest only when publishing first version with zero patch (ex. 1.2.0) + // dshackle: + // dshackle:latest image = [ project.hasProperty('docker') ? project.property('docker') : 'emeraldpay', '/dshackle:', @@ -174,7 +173,6 @@ jib { ].join('') tags = [project.version].with(true) { add "t" + DateTimeFormatter.ofPattern("yyyyMMddHHmm").withZone(ZoneId.of('UTC')).format(Instant.now()) - add project.version.toString().replaceAll('(\\d+\\.\\d+).+', '$1') add "latest" } auth {