39 Commits

Author SHA1 Message Date
Nils Burghardt
2126efbc8d update #TT-11 In Progress
Signed-off-by: Nils Burghardt <nilzbu@gmail.com>
2025-08-13 13:52:47 +02:00
Nils Burghardt
976d979f5c TT-11 State In Progress
Signed-off-by: Nils Burghardt <nilzbu@gmail.com>
2025-08-13 13:45:19 +02:00
Nils Burghardt
17e8998248 TT-11 State In Progress
Signed-off-by: Nils Burghardt <nilzbu@gmail.com>
2025-08-13 13:34:42 +02:00
Nils Burghardt
1cd4728eb4 TT-11 State In Progress 2025-08-13 13:29:32 +02:00
Nils Burghardt
3e0a0532c0 TT-11 State In Progress 2025-08-13 13:27:49 +02:00
Nils Burghardt
c9163753ac TT-11 state In Progress 2025-08-13 13:27:22 +02:00
Nils Burghardt
d05031f35e TT-11 state In Progress 2025-08-13 13:23:12 +02:00
Nils Burghardt
71b35a44a7 TT-11 Set state In Progress 2025-08-13 13:22:17 +02:00
Nils Burghardt
a58f9d9635 TT-11 Set State In Progress 2025-08-13 13:14:56 +02:00
Nils Burghardt
736630adec TT-11 Set State In Progress 2025-08-13 13:02:22 +02:00
Nils Burghardt
030f2d2155 TT-11 State In Progress 2025-08-13 12:58:16 +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
2 changed files with 50 additions and 26 deletions

View File

@@ -2,37 +2,60 @@ name: Build-und-Deploy
on: on:
push: push:
branches: branches: [ master ]
- master
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: ci-java21-node20:latest
steps: steps:
- name: 📥 Repository auschecken - name: Map gitea into /etc/hosts (ohne ip)
uses: actions/checkout@v3 shell: bash
- 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
run: | 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 mkdir -p /shared_jar_data /shared_jar_data/archive
SRC="$(ls -1 build/libs/*.jar | head -n1)"
# Zeitstempel im Format YYYYMMDD-HHMMSS # WICHTIG: Fester Name, den docker-compose startet
timestamp=$(date +"%Y%m%d-%H%M%S") cp -f "$SRC" "/shared_jar_data/MyTimeTracker-0.0.1-SNAPSHOT.jar"
# Zusätzlich archivieren
# JAR-Datei kopieren (aktuelle Version) cp -f "$SRC" "/shared_jar_data/archive/MyTimeTracker-${ts}.jar"
cp build/libs/MyTimeTracker-0.0.1-SNAPSHOT.jar /shared_jar_data/MyTimeTracker-0.0.1-SNAPSHOT.jar ls -al /shared_jar_data | tail -n +1
# 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

1
probe.txt Normal file
View File

@@ -0,0 +1 @@
Test 11