-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ryjiang <[email protected]>
- Loading branch information
1 parent
27d7e1e
commit 685a715
Showing
1 changed file
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,13 +26,9 @@ jobs: | |
- name: Check out Git repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Extract Major.Minor tag | ||
id: extract_version | ||
run: | | ||
# Remove the leading 'v' and split the version into major.minor (e.g., v2.4.11 -> 2.4) | ||
VERSION="${GITHUB_REF##*/}" | ||
MAJOR_MINOR_TAG="$(echo $VERSION | cut -d. -f1,2)" | ||
echo "MAJOR_MINOR_TAG=$MAJOR_MINOR_TAG" >> $GITHUB_ENV | ||
- name: Extract Major.Minor tag (only for Docker job) | ||
if: matrix.name == 'Docker Build' | ||
uses: damienaicheh/[email protected] | ||
|
||
- name: Install Node.js, NPM, and Yarn | ||
uses: actions/setup-node@v4 | ||
|
@@ -75,7 +71,7 @@ jobs: | |
platforms: ${{ matrix.platform }} | ||
tags: | | ||
zilliz/attu:${{ github.ref_name }} | ||
zilliz/attu:${{ env.MAJOR_MINOR_TAG }} | ||
zilliz/attu:v${{ env.MAJOR_MINOR_TAG }}.${{ env.MINOR }} | ||
cache-from: type=registry,ref=zilliz/attu:cache | ||
cache-to: type=inline | ||
build-args: | | ||
|