Skip to content

Commit

Permalink
chore: use different tag format
Browse files Browse the repository at this point in the history
  • Loading branch information
kashike committed May 9, 2024
1 parent 4dccc2a commit 3616bd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import java.nio.file.StandardOpenOption
import java.time.Instant
import kotlin.io.path.Path
import kotlin.io.path.bufferedWriter

Expand All @@ -13,6 +14,7 @@ plugins {

alias(libs.plugins.indra)
alias(libs.plugins.indra.checkstyle)
alias(libs.plugins.indra.git)
alias(libs.plugins.jib)
alias(libs.plugins.spotless)
alias(libs.plugins.spring.dependency.management)
Expand Down Expand Up @@ -45,7 +47,10 @@ spotless {
jib {
to {
image = "ghcr.io/papermc/bibliothek"
tags = setOf("latest", project.version.toString())
tags = setOf(
"latest",
"${indraGit.branchName()}-${indraGit.commit()?.name()?.take(8)}-${Instant.now().epochSecond}"
)
}

from {
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ indra = "3.1.3"
[plugins]
indra = { id = "net.kyori.indra", version.ref = "indra" }
indra-checkstyle = { id = "net.kyori.indra.checkstyle", version.ref = "indra" }
indra-git = { id = "net.kyori.indra.git", version.ref = "indra" }
jib = { id = "com.google.cloud.tools.jib", version = "3.4.2" }
spotless = { id = "com.diffplug.spotless", version = "6.25.0" }
spring-boot = { id = "org.springframework.boot", version = "3.2.5" }
Expand Down

0 comments on commit 3616bd1

Please sign in to comment.