pipeline
Some checks failed
Probe-Mounts / build (push) Failing after 29s

This commit is contained in:
nilzbu
2025-08-09 18:39:32 +02:00
parent 9bf604719a
commit 5bacd33ea0

View File

@@ -16,17 +16,15 @@ jobs:
shell: bash
run: |
set -euo pipefail
# Default-Gateway aus /proc/net/route in dotted quad umrechnen
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" # Fallback: Standard-Docker-Bridge
gw="172.17.0.1"
fi
echo "$gw gitea" >> /etc/hosts
echo "$gw host.docker.internal" >> /etc/hosts || true
getent hosts gitea || true
- name: Checkout
uses: actions/checkout@v4
@@ -42,29 +40,28 @@ jobs:
- name: 🧰 Gradle vorbereiten & Version
shell: bash
run: |
set -euxo pipefail
# Wrapper muss im Repo liegen
if [ ! -f ./gradlew ]; then
set -euxo pipefail
if [ ! -f ./gradlew ]; then
echo "gradlew fehlt bitte lokal einmal 'gradle wrapper' ausführen und committen."; exit 1
fi
chmod +x ./gradlew
./gradlew --version
fi
chmod +x ./gradlew
./gradlew --version
- name: 🏗️ Build (ohne Tests)
shell: bash
run: |
set -euxo pipefail
./gradlew clean build -x test --no-daemon
ls -al build/libs
- name: 🏗️ Build (ohne Tests)
shell: bash
run: |
set -euxo pipefail
./gradlew clean build -x test --no-daemon
ls -al build/libs
- name: 📦 JAR ins Shared-Volume kopieren
shell: bash
run: |
set -euxo pipefail
ts="$(date +'%Y%m%d-%H%M%S')"
mkdir -p /shared_jar_data/archive
src="$(ls -1 build/libs/*.jar | head -n1)"
cp "$src" "/shared_jar_data/MyTimeTracker-${ts}.jar"
cp "$src" "/shared_jar_data/archive/MyTimeTracker-${ts}.jar"
echo "Kopiert: $src -> /shared_jar_data/MyTimeTracker-${ts}.jar"
ls -al /shared_jar_data | tail -n +1
- name: 📦 JAR ins Shared-Volume kopieren
shell: bash
run: |
set -euxo pipefail
ts="$(date +'%Y%m%d-%H%M%S')"
mkdir -p /shared_jar_data/archive
src="$(ls -1 build/libs/*.jar | head -n1)"
cp "$src" "/shared_jar_data/MyTimeTracker-${ts}.jar"
cp "$src" "/shared_jar_data/archive/MyTimeTracker-${ts}.jar"
echo "Kopiert: $src -> /shared_jar_data/MyTimeTracker-${ts}.jar"
ls -al /shared_jar_data | tail -n +1