From 7d4863476186d1e2d4e12d3ee67b3a0a9712b529 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 25 Jun 2026 15:10:03 +0000 Subject: [PATCH] =?UTF-8?q?vom=20server=20=C3=BCbernommen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/mindflux.yml | 40 +++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/mindflux.yml b/.gitea/workflows/mindflux.yml index 2a43ef1..24b4483 100644 --- a/.gitea/workflows/mindflux.yml +++ b/.gitea/workflows/mindflux.yml @@ -2,21 +2,49 @@ name: mindflux-ci on: push: - branches: ["main"] + branches: [ "main" ] jobs: build: runs-on: ubuntu-latest - container: - image: maven:3.9-eclipse-temurin-21 - steps: - name: Checkout + uses: actions/checkout@v4 + with: + path: . + + - name: Debug workspace run: | pwd ls -la + find . -name pom.xml - - name: Build with Maven + - name: Setup Java 21 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + + - name: Build Maven run: | - mvn -B clean package -DskipTests + pwd + ls -la + mvn clean package -DskipTests + + - name: Docker build + run: docker build -t registry:5000/mindflux:latest . + + - name: Push image + run: docker push registry:5000/mindflux:latest + + - name: Setup SSH + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan -H 167.233.81.134 >> ~/.ssh/known_hosts + + - name: Deploy + run: | + ssh ci-deploy@167.233.81.134 "/srv/sysnaptik/deploy-mindflux.sh" \ No newline at end of file