From 832a3d36773480d265b39ae5925f91c6acca7c30 Mon Sep 17 00:00:00 2001 From: Ronny Date: Mon, 6 Apr 2026 10:08:01 +0200 Subject: [PATCH] feat: add Gitea Actions CI pipeline for Docker build Builds Docker image on push to main via self-hosted runner on NAS. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..4c9b359 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build & Deploy Tippspiel + +on: + push: + branches: [main] + +jobs: + build: + runs-on: self-hosted + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build Docker Image + run: | + docker build -t wm2026-tippspiel:latest -t wm2026-tippspiel:${{ gitea.sha }} . + + - name: Restart Container + run: | + docker compose -f /tmp/tippspiel-compose.yml up -d --force-recreate 2>/dev/null || echo "Stack not yet deployed via Portainer"