From 194c9bb255b4b386327f903104e71d8adaef72fa Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Mon, 22 Dec 2025 22:20:56 +0800 Subject: [PATCH] chore(ci): simplify image check workflow and clean up pipelines --- .github/workflows/build-images.yml | 2 +- ...k-xcontrol-image.yaml => check-image.yaml} | 0 .github/workflows/pipeline.yml | 115 ------------------ 3 files changed, 1 insertion(+), 116 deletions(-) rename .github/workflows/{check-xcontrol-image.yaml => check-image.yaml} (100%) delete mode 100644 .github/workflows/pipeline.yml diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index beead1f..7b4f6ae 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -1,4 +1,4 @@ -name: Build Service Images +name: Build Dashboard Images on: workflow_call: diff --git a/.github/workflows/check-xcontrol-image.yaml b/.github/workflows/check-image.yaml similarity index 100% rename from .github/workflows/check-xcontrol-image.yaml rename to .github/workflows/check-image.yaml diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml deleted file mode 100644 index be1b85a..0000000 --- a/.github/workflows/pipeline.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: XControl Unified CI/CD Pipeline - -on: - push: - branches: [main] - pull_request: - branches: [main] - workflow_dispatch: - inputs: - environment: - description: "Target environment" - type: choice - options: [dev, prod] - default: dev - -permissions: - contents: read - packages: write - id-token: write - -jobs: - - # ------------------------------------------------------------- - # CI — Code Quality → Build → Test → Security - # ------------------------------------------------------------- - ci: - name: "CI • ${{ matrix.service }} @ ${{ matrix.platform }}" - runs-on: ubuntu-latest - - env: - ENVIRONMENT: dev - - strategy: - fail-fast: false - matrix: - platform: ["linux/amd64", "linux/arm64"] - service: ["dashboard", "rag-server", "account"] - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Code Quality - uses: ./.github/actions/code-quality - with: - environment: ${{ env.ENVIRONMENT }} - service: ${{ matrix.service }} - platform: ${{ matrix.platform }} - - - name: Build - uses: ./.github/actions/build - with: - environment: ${{ env.ENVIRONMENT }} - service: ${{ matrix.service }} - platform: ${{ matrix.platform }} - - - name: "Test • ${{ matrix.service }} @ ${{ matrix.platform }}" - uses: ./.github/actions/test - with: - environment: ${{ env.ENVIRONMENT }} - service: ${{ matrix.service }} - platform: ${{ matrix.platform }} - - - name: Security Check - uses: ./.github/actions/security - with: - environment: ${{ env.ENVIRONMENT }} - service: ${{ matrix.service }} - platform: ${{ matrix.platform }} - - build-base-images: - name: Build Base Images - needs: ci - uses: ./.github/workflows/build-base-images.yml - secrets: inherit - with: - registry: ghcr.io - org: cloud-neutral-toolkit - push_images: true - - build-service-images: - name: Build Service Images - needs: build-base-images - uses: ./.github/workflows/build-service-images.yml - secrets: inherit - with: - push_images: true - - # ------------------------------------------------------------- - # CD — Deploy(只在 workflow_dispatch 时跑) - # ------------------------------------------------------------- - cd: - name: "Deploy • ${{ matrix.service }} (${{ github.event.inputs.environment }})" - runs-on: ubuntu-latest - needs: build-service-images - if: github.event_name == 'workflow_dispatch' - - strategy: - fail-fast: false - matrix: - platform: ["linux/amd64"] - service: ["dashboard", "rag-server", "account"] - - env: - ENVIRONMENT: ${{ github.event.inputs.environment }} - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Deploy Services - uses: ./.github/actions/deploy - with: - environment: ${{ env.ENVIRONMENT }} - platform: ${{ matrix.platform }} - service: ${{ matrix.service }}