From af378e0d0e60398c95e61cb9bdb87775caacc7ff Mon Sep 17 00:00:00 2001 From: Alexis Bruneteau Date: Wed, 22 Oct 2025 01:29:01 +0200 Subject: [PATCH] fix: Configure Gitea workflow for monorepo structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add working-directory default to build and deploy jobs - Fix npm cache lookup to point to dashboard-sqdc/package-lock.json - Ensure all Node.js and kubectl operations execute from correct directory 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitea/workflows/build-deploy.yml | 7 +++++++ dashboard-sqdc/DEPLOYMENT.md | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-deploy.yml b/.gitea/workflows/build-deploy.yml index 16c02e6..774cb06 100644 --- a/.gitea/workflows/build-deploy.yml +++ b/.gitea/workflows/build-deploy.yml @@ -12,6 +12,9 @@ jobs: build: name: Build Docker Image runs-on: ubuntu-latest + defaults: + run: + working-directory: dashboard-sqdc steps: - name: Checkout code uses: actions/checkout@v3 @@ -21,6 +24,7 @@ jobs: with: node-version: '18' cache: 'npm' + cache-dependency-path: dashboard-sqdc/package-lock.json - name: Install dependencies run: npm ci @@ -50,6 +54,9 @@ jobs: runs-on: ubuntu-latest needs: build if: github.event_name == 'push' + defaults: + run: + working-directory: dashboard-sqdc steps: - name: Checkout code uses: actions/checkout@v3 diff --git a/dashboard-sqdc/DEPLOYMENT.md b/dashboard-sqdc/DEPLOYMENT.md index d4f7c51..f7effc2 100644 --- a/dashboard-sqdc/DEPLOYMENT.md +++ b/dashboard-sqdc/DEPLOYMENT.md @@ -207,7 +207,7 @@ The workflow file is already created at `.gitea/workflows/build-deploy.yml` **Workflow steps:** 1. Build - Runs tests, builds Docker image, and pushes to container registry -2. Deploy - Pulls image from registry and deploys to Kubernetes (only on main/dashboard branch) +2. Deploy - Pulls image from registry and deploys to Kubernetes (on any push) 3. Notify - Sends deployment status ### 4. First Deployment