Some checks failed
Host-Based Deploy (Java 21 Fix) / build-and-run (push) Failing after 1s
29 lines
811 B
YAML
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
|