Files
xxx-sphere-web/.gitea/workflows/deploy.yaml
Mario 917ca81aa8
Some checks failed
Host-Based Deploy (Java 21 Fix) / build-and-run (push) Failing after 1s
Workflow angepasst
2026-04-01 17:00:24 +02:00

29 lines
811 B
YAML

name: Host-Based Deploy (Java 21 Fix)
on:
push:
branches:
- master
jobs:
build-and-run:
# WICHTIG: Hier nutzen wir das neue Host-Label
runs-on: pve-host
steps:
- name: Checkout Code
run: |
# Auf dem Host nutzen wir einfach normales Git
rm -rf * # Sauber machen
git clone http://git.langhei.de/Entwicklung/xxx-sphere-web.git .
git config --global http.sslVerify false
git checkout master
- name: Build Docker Image (Native Java 21)
run: |
chmod +x gradlew
# Da wir direkt auf dem Host sind, hat Java vollen Kernel-Zugriff
./gradlew bootBuildImage --imageName=xxx-sphere-web:latest
- name: Deploy Container
run: |
docker compose up -d --force-recreate