Gitea Workflow hinzugefügt
Some checks failed
Auto-Deploy to Proxmox / build-and-run (push) Failing after 57s

This commit is contained in:
2026-04-01 11:45:00 +02:00
parent 7b9eda1d62
commit 9a42f238ac
2 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
name: Auto-Deploy to Proxmox
on:
push:
branches:
- master # Oder 'main' - je nachdem wie dein Haupt-Branch heißt
jobs:
build-and-run:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Java 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Build Docker Image (Gradle)
# Hier nutzen wir dein Kommando aus der deploy.sh
run: ./gradlew bootBuildImage --imageName=xxx-sphere-web:latest
- name: Start Container
# Da der Runner auf dem Host läuft, brauchen wir keinen Context.
# Wir führen einfach dein compose-Kommando aus.
run: docker compose up -d --force-recreate

View File

@@ -2,7 +2,7 @@
# Konfiguration # Konfiguration
REMOTE_CONTEXT="proxmox-remote" REMOTE_CONTEXT="proxmox-remote"
IMAGE_NAME="xxx-sphere" IMAGE_NAME="xxx-sphere-web"
TAG="latest" TAG="latest"
echo "--- 1. Gradle Build: Erstelle Docker Image lokal ---" echo "--- 1. Gradle Build: Erstelle Docker Image lokal ---"