Gitea Workflow hinzugefügt
Some checks failed
Auto-Deploy to Proxmox / build-and-run (push) Failing after 57s
Some checks failed
Auto-Deploy to Proxmox / build-and-run (push) Failing after 57s
This commit is contained in:
27
.gitea/workflows/deploy.yaml
Normal file
27
.gitea/workflows/deploy.yaml
Normal 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
|
||||||
@@ -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 ---"
|
||||||
|
|||||||
Reference in New Issue
Block a user