Update build.gradle

This commit is contained in:
Maksim
2023-02-06 17:14:16 +03:00
committed by GitHub
parent 0eb3523027
commit c519e8e8c7

View File

@@ -171,6 +171,7 @@ jib {
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 {
username = System.getenv('DOCKERHUB_USERNAME') ?: ''