This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit 65cb30498eeef299fca0daafc1c42e56fce6ebbf
Author: LinkinStars <[email protected]>
AuthorDate: Mon Sep 23 14:30:22 2024 +0800

    ci(github): only formal tag will push the latest image
---
 ...ild-image-for-release.yml => build-image-for-latest-release.yml} | 6 ++++--
 .github/workflows/build-image-for-release.yml                       | 1 -
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build-image-for-release.yml 
b/.github/workflows/build-image-for-latest-release.yml
similarity index 94%
copy from .github/workflows/build-image-for-release.yml
copy to .github/workflows/build-image-for-latest-release.yml
index 150b1d62..7cc11d39 100644
--- a/.github/workflows/build-image-for-release.yml
+++ b/.github/workflows/build-image-for-latest-release.yml
@@ -24,6 +24,10 @@ on:
       - v2.*
       - v1.*
       - v0.*
+    tags-ignore:
+      - v2.*-RC*
+      - v1.*-RC*
+      - v0.*-RC*
   # pull_request:
   #   branches: [ "main" ]
 
@@ -42,8 +46,6 @@ jobs:
         images: apache/answer
         tags: |
           type=raw,value=latest
-          type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
-          type=semver,pattern={{version}}
 
     - name: Set up QEMU
       uses: docker/setup-qemu-action@v2
diff --git a/.github/workflows/build-image-for-release.yml 
b/.github/workflows/build-image-for-release.yml
index 150b1d62..6b4b2425 100644
--- a/.github/workflows/build-image-for-release.yml
+++ b/.github/workflows/build-image-for-release.yml
@@ -41,7 +41,6 @@ jobs:
       with:
         images: apache/answer
         tags: |
-          type=raw,value=latest
           type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
           type=semver,pattern={{version}}
 

Reply via email to