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

jiacai2050 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/horaedb.git


The following commit(s) were added to refs/heads/main by this push:
     new d4d8d546 fix: skip build latest docker tag for RC version. (#1590)
d4d8d546 is described below

commit d4d8d5463168cc8577f4c43d371caf71caec0f94
Author: o'Laoxu <[email protected]>
AuthorDate: Tue Nov 12 15:36:27 2024 +0800

    fix: skip build latest docker tag for RC version. (#1590)
    
    ## Rationale
    Close #1589
    
    ## Detailed Changes
    Upgrade `publish-image.yml` for skip build latest docker tag for RC
    version.
    
    ## Test Plan
    pass
---
 .github/workflows/publish-image.yml | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/publish-image.yml 
b/.github/workflows/publish-image.yml
index a5a8ec98..be97587c 100644
--- a/.github/workflows/publish-image.yml
+++ b/.github/workflows/publish-image.yml
@@ -30,6 +30,8 @@ jobs:
     steps:
       - name: Checkout
         uses: actions/checkout@v3
+        with:
+          ref: refs/tags/${{ inputs.version }}
       - name: Set up Docker Buildx
         uses: docker/setup-buildx-action@v2
       - name: Login to DockerHub
@@ -42,13 +44,17 @@ jobs:
         with:
           context: horaemeta
           push: true
-          tags: apache/horaemeta-server:latest,apache/horaemeta-server:${{ 
inputs.version }}
+          tags: |
+            apache/horaemeta-server:${{ inputs.version }}
+            ${{ contains(inputs.version.toLowerCase(), 'rc') == false && 
'apache/horaemeta-server:latest' || '' }}
 
   horaedb:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout
         uses: actions/checkout@v3
+        with:
+          ref: refs/tags/${{ inputs.version }}
       - name: Set up Docker Buildx
         uses: docker/setup-buildx-action@v2
       - name: Login to DockerHub
@@ -61,4 +67,6 @@ jobs:
         with:
           context: .
           push: true
-          tags: apache/horaedb-server:latest,apache/horaedb-server:${{ 
inputs.version }}
+          tags: |
+            apache/horaedb-server:${{ inputs.version }}
+            ${{ contains(inputs.version.toLowerCase(), 'rc') == false && 
'apache/horaedb-server:latest' || '' }}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to