34 Commits

Author SHA1 Message Date
Nils Burghardt
29a0336c39 TT-9 State In Progress 2025-08-13 12:22:46 +02:00
Nils Burghardt
78f548eb28 TT-9 State In Progress 2025-08-13 12:18:59 +02:00
Nils Burghardt
01fa55553b TT-9 State In Progress 2025-08-13 12:16:56 +02:00
Nils Burghardt
804bb9dc0a TT-9 State In Progress 2025-08-13 12:11:23 +02:00
nilzbu
0d2334da48 pipeline
All checks were successful
Build-und-Deploy / build (push) Successful in 1m37s
2025-08-09 19:24:25 +02:00
nilzbu
f24fef9b16 pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 1m34s
2025-08-09 19:21:01 +02:00
nilzbu
13d8970b7a pipeline
All checks were successful
Build-und-Deploy / build (push) Successful in 1m36s
2025-08-09 18:57:36 +02:00
nilzbu
eed815c646 pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 33s
2025-08-09 18:47:35 +02:00
nilzbu
5bacd33ea0 pipeline
Some checks failed
Probe-Mounts / build (push) Failing after 29s
2025-08-09 18:39:32 +02:00
nilzbu
9bf604719a pipeline
Some checks failed
Probe-Mounts / build (push) Failing after 34s
2025-08-09 18:33:48 +02:00
nilzbu
8dcd02c593 pipeline
Some checks failed
Probe-Mounts / build (push) Failing after 30s
2025-08-09 18:26:31 +02:00
nilzbu
9efdacea9e pipeline
Some checks failed
Probe-Mounts / build (push) Failing after 2s
2025-08-09 18:24:04 +02:00
nilzbu
587e2dbdf2 pipeline
Some checks failed
Probe-Mounts / build (push) Failing after 23s
2025-08-09 18:18:31 +02:00
nilzbu
4f3a5d4d66 pipeline
Some checks failed
Build-und-Deploy (Probe) / build (push) Failing after 28s
2025-08-09 18:15:58 +02:00
nilzbu
590babea9e pipeline
Some checks failed
Build-und-Deploy (Probe) / build (push) Failing after 28s
2025-08-09 18:11:41 +02:00
nilzbu
4e9fd80296 pipeline
Some checks failed
Build-und-Deploy (Probe) / build (push) Failing after 28s
2025-08-09 18:07:00 +02:00
nilzbu
eb60e5af16 pipeline
Some checks failed
Build-und-Deploy (Probe) / build (push) Failing after 35s
2025-08-09 17:56:55 +02:00
nilzbu
eb02ef4490 pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 30s
2025-08-09 17:50:49 +02:00
nilzbu
3c705b6ad8 pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 29s
2025-08-09 17:44:22 +02:00
nilzbu
464d644c4f pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 31s
2025-08-09 17:39:47 +02:00
nilzbu
c04e4f85fc pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 35s
2025-08-09 17:07:37 +02:00
nilzbu
d3c41b3e6c pipeline
Some checks are pending
Build-und-Deploy / build (push) Waiting to run
2025-08-09 16:57:29 +02:00
nilzbu
b1202577a8 pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 42s
2025-08-09 16:43:59 +02:00
nilzbu
39af511bbd pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 1m20s
2025-08-09 16:33:33 +02:00
nilzbu
32dfb0d6b4 pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 1m6s
2025-08-09 16:17:44 +02:00
nilzbu
e70a559f1d pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 1m6s
2025-08-09 16:14:21 +02:00
nilzbu
bbf3e4a20e pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 1m7s
2025-08-09 16:09:39 +02:00
nilzbu
64abe911ee pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 1m2s
2025-08-09 16:04:38 +02:00
nilzbu
d3265d364c pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 1m20s
2025-08-09 15:59:30 +02:00
nilzbu
8be2920952 update pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 9s
2025-08-09 14:38:52 +02:00
nilzbu
98db0678b4 update pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 3s
2025-08-09 14:29:39 +02:00
nilzbu
f88274be3d update pipeline
Some checks failed
Build-und-Deploy / build (push) Failing after 1m0s
2025-08-09 14:26:58 +02:00
nilzbu
6d56458bb9 Merge remote-tracking branch 'origin/master'
Some checks failed
Build-und-Deploy / build (push) Failing after 17s
2025-08-09 14:15:06 +02:00
nilzbu
daf43b7ce2 gradle settings 2025-08-09 14:14:35 +02:00
3 changed files with 54 additions and 26 deletions

View File

@@ -2,37 +2,60 @@ name: Build-und-Deploy
on:
push:
branches:
- master
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: ci-java21-node20:latest
steps:
- name: 📥 Repository auschecken
uses: actions/checkout@v3
- name: 🧼 IP-Adresse von Gitea zu /etc/hosts hinzufügen
run: echo "172.26.0.2 gitea" >> /etc/hosts
- name: 🛠 Baue das Projekt (ohne Tests)
run: ./gradlew clean build -x test
- name: 📦 JAR ins Shared Volume kopieren und archivieren
- name: Map gitea into /etc/hosts (ohne ip)
shell: bash
run: |
set -euo pipefail
gw_hex="$(awk '$2=="00000000" {print $3; exit}' /proc/net/route || true)"
if [ -n "${gw_hex:-}" ]; then
gw="$(printf "%d.%d.%d.%d" 0x${gw_hex:6:2} 0x${gw_hex:4:2} 0x${gw_hex:2:2} 0x${gw_hex:0:2})"
else
gw="172.17.0.1"
fi
echo "$gw gitea" >> /etc/hosts
getent hosts gitea || true
- name: Checkout
uses: actions/checkout@v4
- name: 🧰 Gradle vorbereiten & Version
shell: bash
run: |
set -euxo pipefail
test -f ./gradlew || { echo "gradlew fehlt bitte lokal 'gradle wrapper' ausführen und committen."; exit 1; }
chmod +x ./gradlew
./gradlew --version
- name: 🏗️ Build Backend + Vaadin (Production)
shell: bash
run: |
set -euxo pipefail
# Vaadin im Production-Mode bündeln
./gradlew clean build -x test --no-daemon -Pvaadin.productionMode
ls -al build/libs
JAR="$(ls -1 build/libs/*.jar | head -n1)"
echo "Gebautes JAR: $JAR"
# kurze Sichtprüfung, dass Frontend drin ist
jar tf "$JAR" | grep -E 'VAADIN|static/|index\.html' | head || true
- name: 📦 Nach /shared_jar_data deployen (fester Name + Archiv)
shell: bash
run: |
set -euxo pipefail
ts="$(date +'%Y%m%d-%H%M%S')"
mkdir -p /shared_jar_data /shared_jar_data/archive
# Zeitstempel im Format YYYYMMDD-HHMMSS
timestamp=$(date +"%Y%m%d-%H%M%S")
# JAR-Datei kopieren (aktuelle Version)
cp build/libs/MyTimeTracker-0.0.1-SNAPSHOT.jar /shared_jar_data/MyTimeTracker-0.0.1-SNAPSHOT.jar
# JAR-Datei archivieren
cp build/libs/MyTimeTracker-0.0.1-SNAPSHOT.jar /shared_jar_data/archive/MyTimeTracker-$timestamp.jar
- name: 🚦 Neustart der Anwendung triggern
run: |
mkdir -p /shared_trigger_dir
touch /shared_trigger_dir/restart-requested
SRC="$(ls -1 build/libs/*.jar | head -n1)"
# WICHTIG: Fester Name, den docker-compose startet
cp -f "$SRC" "/shared_jar_data/MyTimeTracker-0.0.1-SNAPSHOT.jar"
# Zusätzlich archivieren
cp -f "$SRC" "/shared_jar_data/archive/MyTimeTracker-${ts}.jar"
ls -al /shared_jar_data | tail -n +1

1
probe.txt Normal file
View File

@@ -0,0 +1 @@
test 3

View File

@@ -1 +1,5 @@
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.9.0'
}
rootProject.name = 'MyTimeTracker'