1
0

28 Commits

Author SHA1 Message Date
3b2d5c371c [maven-release-plugin] prepare release v34 2026-01-18 01:08:41 +01:00
3724b8b5ab [maven-release-plugin] prepare for next development iteration 2026-01-18 00:19:01 +01:00
a35b5ffdc9 [maven-release-plugin] prepare release v33 2026-01-18 00:19:00 +01:00
39eb0769a5 Merge remote-tracking branch 'origin/master' 2026-01-18 00:18:42 +01:00
d355ba45f2 #26 Buildkit again 2026-01-18 00:18:39 +01:00
452892e74b [maven-release-plugin] prepare for next development iteration 2026-01-18 00:17:05 +01:00
dde3b3ad40 [maven-release-plugin] prepare release v32 2026-01-18 00:17:03 +01:00
693f0ef2fc Merge remote-tracking branch 'origin/master' 2026-01-18 00:16:45 +01:00
3b52af188b #26 Reenable buildkit and use another base image 2026-01-18 00:16:41 +01:00
33c2d13f62 [maven-release-plugin] prepare for next development iteration 2026-01-18 00:10:01 +01:00
670d9f19a7 [maven-release-plugin] prepare release v31 2026-01-18 00:10:00 +01:00
fefa5a630b Merge remote-tracking branch 'origin/master' 2026-01-18 00:09:40 +01:00
3d69c88c26 #26 Disable buildkit again and use VFS 2026-01-18 00:09:37 +01:00
8b039440d3 [maven-release-plugin] prepare for next development iteration 2026-01-18 00:06:12 +01:00
57609bb1f6 [maven-release-plugin] prepare release v30 2026-01-18 00:06:11 +01:00
2f19f28213 Merge remote-tracking branch 'origin/master' 2026-01-18 00:05:54 +01:00
6e1eceba2f #26 Reenabled buildkit 2026-01-18 00:05:49 +01:00
618479634f [maven-release-plugin] prepare for next development iteration 2026-01-18 00:04:27 +01:00
0ec5d71bcb [maven-release-plugin] prepare release v29 2026-01-18 00:04:26 +01:00
b3b15cedc2 Merge remote-tracking branch 'origin/master' 2026-01-18 00:04:02 +01:00
79c59af0c6 #26 Disable buildkit 2026-01-18 00:03:48 +01:00
3fe79f6c05 [maven-release-plugin] prepare for next development iteration 2026-01-17 23:57:12 +01:00
09b776c920 [maven-release-plugin] prepare release v28 2026-01-17 23:57:11 +01:00
bfee9ac082 #26 Fix docker build again 2026-01-17 23:56:53 +01:00
e6e312ca09 [maven-release-plugin] prepare for next development iteration 2026-01-17 23:54:26 +01:00
30843a3064 [maven-release-plugin] prepare release v27 2026-01-17 23:54:25 +01:00
f5e9e26dbf Merge remote-tracking branch 'origin/master' 2026-01-17 23:54:06 +01:00
4a1e0b9606 #26 Fix docker build 2026-01-17 23:53:57 +01:00
13 changed files with 21 additions and 21 deletions

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>27-SNAPSHOT</version>
<version>34</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -1,11 +1,10 @@
FROM eclipse-temurin:25-jre-alpine
FROM eclipse-temurin:25-jre-jammy
RUN groupadd -r spring && useradd -r -g spring spring
# Create a non-root user for security
RUN addgroup -S spring && adduser -S spring -G spring
USER spring:spring
ARG JAR_FILE
COPY ${JAR_FILE} app.jar
EXPOSE 8082

11
build/Jenkinsfile vendored
View File

@@ -62,19 +62,20 @@ pipeline {
stage('Docker Build & Push') {
steps {
script {
sh "pwd"
sh "ls -R"
def jarPath = sh(script: "ls target/checkout/web-container/target/*.jar | head -n 1", returnStdout: true).trim()
def releaseVer = sh(script: "pkgx mvn help:evaluate -Dexpression=project.version -q -DforceStdout -f target/checkout/web-container/pom.xml", returnStdout: true).trim()
def registry = env.DOCKER_REGISTRY.toLowerCase()
def registryHost = registry.replace("https://", "").replace("http://", "").replaceAll("/\$", "").toLowerCase()
def imageTag = "${registryHost}/nbscloud:${releaseVer}".toLowerCase()
docker.withRegistry("${env.DOCKER_REGISTRY}", '') {
def customImage = docker.build("${env.DOCKER_REGISTRY}/my-app:${releaseVer}",
"-f build/Dockerfile --build-arg JAR_FILE=${jarPath} .")
docker.withRegistry(registry, '') {
def customImage = docker.build(imageTag, "-f build/Dockerfile --build-arg JAR_FILE=${jarPath} .")
if (params.DRY_RUN) {
echo "DRY_RUN - do not push image to registry"
}
else {
customImage.push("${releaseVer}")
customImage.push("latest")
}
}

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>27-SNAPSHOT</version>
<version>34</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<artifactId>nbs-cloud-aggregator</artifactId>
<version>27-SNAPSHOT</version>
<version>34</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<artifactId>nbs-cloud-aggregator</artifactId>
<version>27-SNAPSHOT</version>
<version>34</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>27-SNAPSHOT</version>
<version>34</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>27-SNAPSHOT</version>
<version>34</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -10,7 +10,7 @@
<groupId>de.77zzcx7.nbs-cloud</groupId>
<artifactId>nbs-cloud-aggregator</artifactId>
<version>27-SNAPSHOT</version>
<version>34</version>
<packaging>pom</packaging>
<description>The umbrella for all No BullShit cloud projects</description>
<name>nbs-cloud-aggregator</name>
@@ -49,7 +49,7 @@
<connection>scm:git:https://gitea.77zzcx7.de/MK13/NoBullShit-cloud.git</connection>
<developerConnection>scm:git:https://gitea.77zzcx7.de/MK13/NoBullShit-cloud.git</developerConnection>
<url>https://77zzcx7.de/gitea/MK13/NoBullShit-cloud</url>
<tag>v22</tag>
<tag>v34</tag>
</scm>
<dependencyManagement>

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>27-SNAPSHOT</version>
<version>34</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>27-SNAPSHOT</version>
<version>34</version>
</parent>
<artifactId>web-container-config</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<artifactId>nbs-cloud-aggregator</artifactId>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<version>27-SNAPSHOT</version>
<version>34</version>
</parent>
<artifactId>web-container-registry</artifactId>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>
<artifactId>nbs-cloud-aggregator</artifactId>
<version>27-SNAPSHOT</version>
<version>34</version>
</parent>
<groupId>de.77zzcx7.nbs-cloud</groupId>