Update build.gradle
This commit is contained in:
@@ -171,6 +171,7 @@ jib {
|
|||||||
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')
|
||||||
|
add "latest"
|
||||||
}
|
}
|
||||||
auth {
|
auth {
|
||||||
username = System.getenv('DOCKERHUB_USERNAME') ?: ''
|
username = System.getenv('DOCKERHUB_USERNAME') ?: ''
|
||||||
|
|||||||
Reference in New Issue
Block a user