This is an automated email from the ASF dual-hosted git repository.

lizhimins pushed a commit to branch rocketmq-studio
in repository https://gitbox.apache.org/repos/asf/rocketmq-dashboard.git


The following commit(s) were added to refs/heads/rocketmq-studio by this push:
     new 92eb0c241 ci: add workflow concurrency, buildx cache and dockerignore 
files (#1674)
92eb0c241 is described below

commit 92eb0c241b57006f3fcf000bea8a2b6685cb01aa
Author: zhaohai <[email protected]>
AuthorDate: Fri Aug 21 17:13:24 2026 +0800

    ci: add workflow concurrency, buildx cache and dockerignore files (#1674)
    
    Rework the CI gating PR per review:
    
    - Keep the Docker improvements: concurrency guard, Docker Buildx layer
      cache for the frontend image build, and lean server/web .dockerignore
      files.
    - Do NOT gate on `npm run test` (nor frontend lint) yet: the upstream
      baseline has known failing tests (SettingsServiceTest, DLQ, Studio
      application context) and a pre-existing eslint error in BrokerCluster,
      so a test/lint gate would immediately show red. Re-enable once the
      baseline is green.
    - Drop the consumer.tsx instance-reset change: it duplicates the
      upstream #1676 / #1707 work already merged on rocketmq-studio.
---
 .github/workflows/ci.yml | 17 +++++++++++++++--
 server/.dockerignore     | 10 ++++++++++
 web/.dockerignore        | 10 ++++++++++
 3 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1a765df1f..0b99f2c52 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,6 +9,10 @@ on:
     branches:
       - rocketmq-studio
 
+concurrency:
+  group: ci-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
   backend-build:
     name: Backend Build (Java 21)
@@ -60,5 +64,14 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v4
 
-      - name: Build frontend Docker image
-        run: docker build -t rocketmq-studio-web-ci ./web
+      - name: Set up Docker Buildx
+        uses: docker/setup-buildx-action@v3
+
+      - name: Build frontend Docker image (cached)
+        uses: docker/build-push-action@v6
+        with:
+          context: ./web
+          push: false
+          tags: rocketmq-studio-web-ci:latest
+          cache-from: type=gha
+          cache-to: type=gha,mode=max
diff --git a/server/.dockerignore b/server/.dockerignore
new file mode 100644
index 000000000..57709cf8a
--- /dev/null
+++ b/server/.dockerignore
@@ -0,0 +1,10 @@
+# Keep the Docker build context lean.
+# NOTE: do not exclude target/ — deploy.sh mode A uses the runtime-prebuilt
+# stage which runs COPY target/*.jar app.jar.
+.git
+.github
+*.log
+.DS_Store
+localRepository
+.idea
+*.iml
diff --git a/web/.dockerignore b/web/.dockerignore
new file mode 100644
index 000000000..03b94481b
--- /dev/null
+++ b/web/.dockerignore
@@ -0,0 +1,10 @@
+# Keep the Docker build context lean: node_modules alone is hundreds of MB.
+node_modules
+dist
+.git
+.github
+*.log
+.DS_Store
+.env
+.env.local
+coverage

Reply via email to