From 27d7e1e8a35fb204c1df0f34bc51540d0879ae0a Mon Sep 17 00:00:00 2001 From: ryjiang Date: Wed, 13 Nov 2024 15:26:17 +0800 Subject: [PATCH] update release ci Signed-off-by: ryjiang --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0494f033..2bd0e411 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,14 @@ 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: Install Node.js, NPM, and Yarn uses: actions/setup-node@v4 with: @@ -67,6 +75,7 @@ jobs: platforms: ${{ matrix.platform }} tags: | zilliz/attu:${{ github.ref_name }} + zilliz/attu:${{ env.MAJOR_MINOR_TAG }} cache-from: type=registry,ref=zilliz/attu:cache cache-to: type=inline build-args: |