|
@@ -11,12 +11,6 @@ on:
|
|
jobs:
|
|
jobs:
|
|
build:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
- strategy:
|
|
|
|
- matrix:
|
|
|
|
- platform:
|
|
|
|
- - linux/amd64
|
|
|
|
- - linux/arm64
|
|
|
|
- - linux/arm/v7
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/checkout@v4
|
|
@@ -37,11 +31,11 @@ jobs:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PWD }}
|
|
password: ${{ secrets.DOCKER_PWD }}
|
|
|
|
|
|
- - name: Docker Build and Push
|
|
|
|
|
|
+ - name: Docker Build and Push (Multi-platform)
|
|
uses: docker/build-push-action@v5
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
with:
|
|
context: .
|
|
context: .
|
|
- platforms: ${{ matrix.platform }}
|
|
|
|
|
|
+ platforms: linux/amd64
|
|
tags: |
|
|
tags: |
|
|
zilliz/attu:dev
|
|
zilliz/attu:dev
|
|
cache-from: type=registry,ref=zilliz/attu:cache
|
|
cache-from: type=registry,ref=zilliz/attu:cache
|
|
@@ -49,3 +43,25 @@ jobs:
|
|
build-args: |
|
|
build-args: |
|
|
VERSION=dev
|
|
VERSION=dev
|
|
push: true
|
|
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 }}
|