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