ci: add gitea image publishing workflows
This commit is contained in:
@@ -14,7 +14,7 @@ plugins {
|
||||
apply(plugin = "org.springframework.boot")
|
||||
|
||||
group = "at.dslan"
|
||||
version = "0.1.0"
|
||||
version = file("VERSION").readText().trim()
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
@@ -40,3 +40,14 @@ dependencies {
|
||||
tasks.withType<Test> {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks.register<Copy>("stageFatJar") {
|
||||
group = "build"
|
||||
description = "Copies the boot jar to a stable location for CI image assembly."
|
||||
dependsOn("bootJar")
|
||||
from(layout.buildDirectory.dir("libs")) {
|
||||
include("*.jar")
|
||||
}
|
||||
into(layout.buildDirectory.dir("ci"))
|
||||
rename { "server.jar" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user