From 55c7837202e3c669c15ef2cea209d8308f4a3108 Mon Sep 17 00:00:00 2001 From: Robin Schanbacher Date: Sat, 25 Jul 2026 20:21:36 +0200 Subject: [PATCH 1/2] change textes to english removed unnecessary comments --- .gitea/workflows/deploy.yaml | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index a5295be..cf0fa0e 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -11,47 +11,43 @@ jobs: container: image: docker:latest steps: - - name: Code auschecken + - name: Checkout code run: | apk add --no-cache curl unzip curl -L -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ "http://172.17.0.1:3000/api/v1/repos/${{ github.repository }}/archive/main.zip" -o repo.zip unzip repo.zip - # Verschiebt alle Dateien aus dem Zip-Unterordner direkt hierher ins Hauptverzeichnis mv PsalmTafel/* . 2>/dev/null || mv psalmtafel/* . 2>/dev/null || mv */* . 2>/dev/null rm repo.zip - - name: Docker Container aktualisieren + - name: Update Docker container run: | - # Kein 'cd' mehr! Wir sind schon im richtigen Ordner, wo dein Dockerfile liegt. - echo "Baue das neue Next.js Docker-Image..." + echo "Building new Next.js Docker image..." docker build -t psalmtafel-app . - echo "Stoppe alten Container, falls er läuft..." + echo "Stopping old container if running..." docker stop psalmtafel-container || true docker rm psalmtafel-container || true - echo "Starte neuen Container..." + echo "Starting new container..." docker run -d \ --name psalmtafel-container \ -p 8443:3000 \ --restart always \ psalmtafel-app - - name: Release in Gitea erstellen + + - name: Create release in Gitea run: | - # 1. jq installieren und Version aus package.json auslesen apk add --no-cache jq VERSION=$(jq -r '.version' package.json) - echo "Aktuelle Version: v$VERSION" + echo "Current version: v$VERSION" - # 2. Prüfen, ob das Release/Tag bereits existiert HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" \ -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ "http://172.17.0.1:3000/api/v1/repos/${{ github.repository }}/releases/tags/v$VERSION") - # 3. Wenn Release noch nicht existiert (404), erstelle es if [ "$HTTP_STATUS" -eq 404 ]; then - echo "Erstelle neues Release v$VERSION..." + echo "Creating new release v$VERSION..." curl -X POST \ -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ -H "Content-Type: application/json" \ @@ -59,11 +55,11 @@ jobs: \"tag_name\": \"v$VERSION\", \"target_commitish\": \"main\", \"name\": \"Release v$VERSION\", - \"body\": \"Automatisches Release für Version v$VERSION\", + \"body\": \"Automated release for version v$VERSION\", \"draft\": false, \"prerelease\": false }" \ "http://172.17.0.1:3000/api/v1/repos/${{ github.repository }}/releases" else - echo "Release v$VERSION existiert bereits. Überspringe Erstellung." + echo "Release v$VERSION already exists. Skipping creation." fi \ No newline at end of file From a9b93b56240a6129ec438f769c1148d456e0e9c7 Mon Sep 17 00:00:00 2001 From: Robin Schanbacher Date: Sat, 25 Jul 2026 20:23:26 +0200 Subject: [PATCH 2/2] change name to psalm-tafel update version number --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9e8655e..91a06a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "lied-nummer-anzeige", - "version": "0.0.2", + "name": "psalm-talel", + "version": "0.0.3", "private": true, "scripts": { "dev": "next dev",