From c05a174c50e3dc4c39ddbabf0c3a6f09bc54479b Mon Sep 17 00:00:00 2001 From: Winz Date: Sun, 12 Apr 2026 14:03:02 +0200 Subject: [PATCH] add ci runner --- .gitea/workflows/ci.yaml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..e76febe --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + build-and-deploy: + runs-on: [finanzen] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Show environment + run: | + whoami + pwd + node -v || true + npm -v || true + + - name: Install dependencies + run: npm install + + - name: Prisma generate + run: npx prisma generate + + - name: Build app + run: npm run build + + - name: Run Prisma migrations + run: npx prisma migrate deploy + + - name: Seeding demo data... + run: npx prisma db seed + + - name: Restart service + run: sudo systemctl restart finanzen-app + + - name: Show service status + run: sudo systemctl --no-pager --full status finanzen-app