mirror of
https://github.com/dalbodeule/sh0rt.kr-pdns.git
synced 2025-08-11 14:01:12 +00:00
set tags, add gradle wrappers
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
|
||||
import java.time.LocalDateTime
|
||||
import java.time.format.DateTimeFormatter
|
||||
|
||||
plugins {
|
||||
id("java")
|
||||
@@ -11,6 +14,8 @@ plugins {
|
||||
kotlin("plugin.jpa") version "1.9.24"
|
||||
}
|
||||
|
||||
val datetimeFormatter: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMddHHmm")
|
||||
|
||||
group = "space.mori"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
|
||||
@@ -63,3 +68,8 @@ tasks.named<org.springframework.boot.gradle.tasks.run.BootRun>("bootRun") {
|
||||
systemProperty("spring.profiles.active", "dev")
|
||||
}
|
||||
|
||||
tasks.named<BootBuildImage>("bootBuildImage") {
|
||||
imageName = "dalbodeule/dnsapi"
|
||||
tags = setOf("latest", datetimeFormatter.format(LocalDateTime.now()))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user