From 538180ec6dc3b7f16eeae9c236eb632018f389db Mon Sep 17 00:00:00 2001 From: Nils Burghardt Date: Sun, 13 Jul 2025 14:25:22 +0200 Subject: [PATCH] Add CI/CD pipeline --- .gitea/workflows/deploy.yml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..0518084 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,45 @@ +name: Build and Deploy + +on: + push: + branches: + - master + +jobs: + build: + runs-on: local + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Install Node.js (für Vaadin) + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Build application + run: ./gradlew build + + deploy: + runs-on: local + needs: build + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Deploy via Docker Compose + run: | + cd compose + docker compose down + docker compose up -d --build \ No newline at end of file