소스 검색

update dev build

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 7 달 전
부모
커밋
1ca6cf339f
1개의 변경된 파일24개의 추가작업 그리고 8개의 파일을 삭제
  1. 24 8
      .github/workflows/dev.yml

+ 24 - 8
.github/workflows/dev.yml

@@ -11,12 +11,6 @@ on:
 jobs:
   build:
     runs-on: ubuntu-latest
-    strategy:
-      matrix:
-        platform:
-          - linux/amd64
-          - linux/arm64
-          - linux/arm/v7
 
     steps:
       - uses: actions/checkout@v4
@@ -37,11 +31,11 @@ jobs:
           username: ${{ secrets.DOCKER_USERNAME }}
           password: ${{ secrets.DOCKER_PWD }}
 
-      - name: Docker Build and Push
+      - name: Docker Build and Push (Multi-platform)
         uses: docker/build-push-action@v5
         with:
           context: .
-          platforms: ${{ matrix.platform }}
+          platforms: linux/amd64
           tags: |
             zilliz/attu:dev
           cache-from: type=registry,ref=zilliz/attu:cache
@@ -49,3 +43,25 @@ jobs:
           build-args: |
             VERSION=dev
           push: true
+
+  tag_issue:
+    runs-on: ubuntu-latest
+    needs: build
+    if: github.event.pull_request.merged == true
+    steps:
+      - uses: actions/checkout@v4
+
+      - name: Extract Issue Number from PR Body
+        id: extract_issue
+        env:
+          PR_BODY: "${{ github.event.pull_request.body }}"
+        run: |
+          echo "ISSUE_NUMBER=$(echo "$PR_BODY" | grep -oP '(?<=#)\d+' | head -n 1)" >> $GITHUB_ENV
+
+      - name: Add ready_to_release label to issue
+        if: env.ISSUE_NUMBER != ''
+        uses: actions-ecosystem/action-add-labels@v1
+        with:
+          github_token: ${{ secrets.PERSONAL_TOKEN }}
+          labels: ready_to_release
+          number: ${{ env.ISSUE_NUMBER }}