Skip to content

Commit

Permalink
introduce next docker tag to leave others unaffected
Browse files Browse the repository at this point in the history
  • Loading branch information
F43nd1r committed Mar 24, 2023
1 parent 2ea3ecc commit f81208c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions acrarium/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,16 @@ noArg {

docker {
name = "f43nd1r/acrarium"
tag("hubLatest", "$name:latest")
tag("ghLatest", "ghcr.io/$name:latest")
tag("hubVersion", "$name:$version")
tag("ghVersion", "ghcr.io/$name:$version")
if (version.toString().matches(Regex("\\d(\\.\\d)*"))) {
tag("hubStable", "$name:stable")
tag("ghStable", "ghcr.io/$name:stable")
}
// tag("hubLatest", "$name:latest")
// tag("ghLatest", "ghcr.io/$name:latest")
// tag("hubVersion", "$name:$version")
// tag("ghVersion", "ghcr.io/$name:$version")
// if (version.toString().matches(Regex("\\d(\\.\\d)*"))) {
// tag("hubStable", "$name:stable")
// tag("ghStable", "ghcr.io/$name:stable")
// }
tag("hubNext", "$name:next")
tag("ghNext", "ghcr.io/$name:next")
files(tasks.getByName<org.springframework.boot.gradle.tasks.bundling.BootJar>("bootJar").outputs)
copySpec.into("build/libs")
}
Expand Down

0 comments on commit f81208c

Please sign in to comment.