add pipeline 18
All checks were successful
Build-und-Deploy / build (push) Successful in 1m16s

This commit is contained in:
Nils Burghardt
2025-07-13 16:24:06 +02:00
parent 9fc5e8c23d
commit b19a46e22d
2 changed files with 11 additions and 9 deletions

View File

@@ -6,18 +6,20 @@ on:
- master
jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest
steps:
- name: 📁 Code auschecken
- name: 📥 Repository auschecken
uses: actions/checkout@v3
- name: 🛠 Build JAR (ohne Tests) und kopiere nach Volume
run: |
./gradlew clean build -x test
cp build/libs/MyTimeTracker-0.0.1-SNAPSHOT.jar /build-output/app.jar
- name: 🧼 IP-Adresse von Gitea zu /etc/hosts hinzufügen
run: echo "172.26.0.2 gitea" >> /etc/hosts
- name: 🔁 Neustart der Anwendung
- name: 🛠 Baue das Projekt (ohne Tests)
run: ./gradlew clean build -x test
- name: 📦 Kopiere JAR ins Shared Volume
run: |
docker compose -f /pfad/zu/mytimetracker/compose.yml restart app
mkdir -p /shared_jar_data
cp build/libs/MyTimeTracker-0.0.1-SNAPSHOT.jar /shared_jar_data/