Initial pipeline

This commit is contained in:
2026-05-08 23:46:34 +01:00
parent 1c6f69c752
commit fe8a911479
6 changed files with 107 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
name: Build Org Backend
on:
push:
branches:
- main
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
build:
runs-on: build-site
env:
APP_HOME: /home/zaine/master-folder/projects/java_projects/org_backend
SERVICE_NAME: org-backend.service
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- name: Verify toolchain
run: |
java -version
mvn -version
- name: Build and test
run: mvn -B clean verify
- name: Deploy jar and restart service
run: ./scripts/deploy-systemd.sh