ci: add gitea image publishing workflows
Some checks failed
Snapshot Docker Image Build / verify-and-package (push) Failing after 3m4s
Snapshot Docker Image Build / build-and-publish-snapshot (push) Has been skipped
Release Docker Image Build / verify-and-package (push) Failing after 3m16s
Release Docker Image Build / build-and-publish (push) Has been skipped

This commit is contained in:
Schramm Dominik
2026-04-22 15:45:09 +02:00
parent 6bd6b08044
commit f4827dc54b
6 changed files with 262 additions and 5 deletions

View File

@@ -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" }
}