diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index b2eefaad..e5a15e51 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -8,7 +8,7 @@ on: branches: - main release: - types: [created, published] # 表示在创建新的 Release 时触发 + types: [ created, published ] # 表示在创建新的 Release 时触发 # Allows you to run this workflow manually from the Actions tab # 可以手动触发 @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18] + node-version: [ 18 ] steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 @@ -135,7 +135,7 @@ jobs: GIT_COMMIT=${{ github.sha }} GIT_TAG=${{ github.ref_name }} GIT_REPOSITORY=${{ github.repository }} - VERSION=${{ env.GITHUB_REF_NAME }} + VERSION=${{ github.ref_name }} MODEL=${{ env.OPENAI_API_MODEL }} API_KEY=${{ secrets.OPENAI_API_KEY }} API_URL=${{ env.OPENAI_API_URL }} diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index ecfb963f..ea0247cc 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -2,7 +2,7 @@ name: build and push binary to release on: release: - types: [created, published] # 表示在创建新的 Release 时触发 + types: [ created, published ] # 表示在创建新的 Release 时触发 env: OPENAI_API_MODEL: Qwen/Qwen2.5-7B-Instruct OPENAI_API_URL: https://public.chatgpt.k8m.site/v1 @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18] + node-version: [ 18 ] steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 @@ -52,7 +52,7 @@ jobs: - name: 编译后端 run: | - make build-all GIT_COMMIT=${{ github.sha }} GIT_TAG=${{ github.ref_name }} GIT_REPOSITORY=${{ github.repository }} BUILD_DATE=${{ env.BUILD_TIME }} VERSION=${{ env.GITHUB_REF_NAME }} MODEL=${{ env.OPENAI_API_MODEL }} API_KEY=${{ secrets.OPENAI_API_KEY }} API_URL=${{ env.OPENAI_API_URL }} + make build-all GIT_COMMIT=${{ github.sha }} GIT_TAG=${{ github.ref_name }} GIT_REPOSITORY=${{ github.repository }} BUILD_DATE=${{ env.BUILD_TIME }} VERSION=${{ github.ref_name }} MODEL=${{ env.OPENAI_API_MODEL }} API_KEY=${{ secrets.OPENAI_API_KEY }} API_URL=${{ env.OPENAI_API_URL }} - name: 上传二进制 uses: svenstaro/upload-release-action@v2 diff --git a/ui/src/components/Amis/custom/cluster/ClusterSummaryView.tsx b/ui/src/components/Amis/custom/cluster/ClusterSummaryView.tsx index e8c1c349..5ceff749 100644 --- a/ui/src/components/Amis/custom/cluster/ClusterSummaryView.tsx +++ b/ui/src/components/Amis/custom/cluster/ClusterSummaryView.tsx @@ -274,15 +274,37 @@ const ClusterSummaryView = React.forwardRef
- + {item.Resource?.[0]?.toUpperCase() || '?'}
- -
{item.Resource}({item.Version})
+
+ {item.Resource}({item.Version}) +