solution: allow to push to custom docker repo
This commit is contained in:
@@ -127,7 +127,11 @@ jib {
|
|||||||
to {
|
to {
|
||||||
// execute with -Platest=true
|
// execute with -Platest=true
|
||||||
// $ gradle jib -Platest=true
|
// $ gradle jib -Platest=true
|
||||||
image = (project.hasProperty('latest') && project.property('latest') == 'true') ? 'emeraldpay/dshackle:latest' : 'emeraldpay/dshackle:snapshot'
|
image = [
|
||||||
|
project.hasProperty('docker') ? project.property('docker') : 'emeraldpay',
|
||||||
|
'/dshackle:',
|
||||||
|
(project.hasProperty('latest') && project.property('latest') == 'true') ? 'latest' : 'snapshot'
|
||||||
|
].join('')
|
||||||
tags = [project.version].with (true) {
|
tags = [project.version].with (true) {
|
||||||
add "t"+ DateTimeFormatter.ofPattern("yyyyMMddHHmm").withZone(ZoneId.of('UTC')).format(Instant.now())
|
add "t"+ DateTimeFormatter.ofPattern("yyyyMMddHHmm").withZone(ZoneId.of('UTC')).format(Instant.now())
|
||||||
add project.version.toString().replaceAll('(\\d+\\.\\d+).+', '$1')
|
add project.version.toString().replaceAll('(\\d+\\.\\d+).+', '$1')
|
||||||
|
|||||||
Reference in New Issue
Block a user