Skip to content

Commit

Permalink
update dev build
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid committed Nov 15, 2024
1 parent 6316ae4 commit 1ca6cf3
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -37,15 +31,37 @@ 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
cache-to: type=inline
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 }}

0 comments on commit 1ca6cf3

Please sign in to comment.