do not push docker tag without patch version (#202)
This commit is contained in:
@@ -164,9 +164,8 @@ jib {
|
||||
// by default publish as:
|
||||
// dshackle:shapshot,
|
||||
// dshackle:t<yyyyMMddHHmm>,
|
||||
// dshackle:<versionFull> and
|
||||
// dshackle:<versionMajor.versionMinor>
|
||||
// dshackle:latest only when publishing first version with zero patch (ex. 1.2.0)
|
||||
// dshackle:<versionFull>
|
||||
// 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 {
|
||||
|
||||
Reference in New Issue
Block a user