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

yuqi4733 pushed a commit to branch issue-4445_for_test
in repository https://gitbox.apache.org/repos/asf/gravitino.git

commit 330d0593ca28fc49acba9e33c148ed06dfd3a4cb
Author: yuqi <[email protected]>
AuthorDate: Wed Aug 14 20:09:27 2024 +0800

    Change docker image.
---
 .github/workflows/docker-image.yml | 60 +++++++++++++++++++++-----------------
 1 file changed, 34 insertions(+), 26 deletions(-)

diff --git a/.github/workflows/docker-image.yml 
b/.github/workflows/docker-image.yml
index dc1a0c6f7..938b20113 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/docker-image.yml
@@ -10,14 +10,14 @@ on:
         default: 'gravitino'
         options:
           - 'gravitino'
-          - 'gravitino:ci-hive'
-          - 'gravitino:ci-kerberos-hive'
-          - 'gravitino:ci-trino'
-          - 'gravitino:ci-doris'
-          - 'gravitino:ci-ranger'
-          - 'gravitino:playground-trino'
-          - 'gravitino:playground-hive'
-          - 'gravitino:playground-ranger'
+          - 'gravitino-ci:hive'
+          - 'gravitino-ci:kerberos-hive'
+          - 'gravitino-ci:trino'
+          - 'gravitino-ci:doris'
+          - 'gravitino-ci:ranger'
+          - 'gravitino-playground:trino'
+          - 'gravitino-playground:hive'
+          - 'gravitino-playground:ranger'
       version:
         description: 'Docker version to apply to this image'
         required: true
@@ -37,33 +37,41 @@ jobs:
     steps:
       - name: Set environment variables
         run: |
-          if [ "${{ github.event.inputs.image }}" == "gravitino:ci-hive" ]; 
then
+          if [ "${{ github.event.inputs.image }}" == "gravitino-ci:hive" ]; 
then
             echo "image_type=hive" >> $GITHUB_ENV
-            echo "tag_name=ci-hive" >> $GITHUB_ENV
-          elif [ "${{ github.event.inputs.image }}" == 
"gravitino:ci-kerberos-hive" ]; then
+            echo "image_name=apache/gravitino-ci" >> $GITHUB_ENV
+            echo "tag_name=hive" >> $GITHUB_ENV
+          elif [ "${{ github.event.inputs.image }}" == 
"gravitino-ci:kerberos-hive" ]; then
             echo "image_type=kerberos-hive" >> $GITHUB_ENV
-            echo "tag_name=ci-kerberos-hive" >> $GITHUB_ENV
-          elif [ "${{ github.event.inputs.image }}" == "gravitino:ci-trino" ]; 
then
+            echo "image_name=apache/gravitino-ci" >> $GITHUB_ENV
+            echo "tag_name=kerberos-hive" >> $GITHUB_ENV
+          elif [ "${{ github.event.inputs.image }}" == "gravitino-ci:trino" ]; 
then
             echo "image_type=trino" >> $GITHUB_ENV
-            echo "tag_name=ci-trino" >> $GITHUB_ENV
-          elif [ "${{ github.event.inputs.image }}" == "gravitino:ci-doris" ]; 
then
+            echo "image_name=apache/gravitino-ci" >> $GITHUB_ENV
+            echo "tag_name=trino" >> $GITHUB_ENV
+          elif [ "${{ github.event.inputs.image }}" == "gravitino-ci:doris" ]; 
then
             echo "image_type=doris" >> $GITHUB_ENV
-            echo "tag_name=ci-doris" >> $GITHUB_ENV
-          elif [ "${{ github.event.inputs.image }}" == "gravitino:ci-ranger" 
]; then
+            echo "image_name=apache/gravitino-ci" >> $GITHUB_ENV
+            echo "tag_name=doris" >> $GITHUB_ENV
+          elif [ "${{ github.event.inputs.image }}" == "gravitino-ci:ranger" 
]; then
             echo "image_type=ranger" >> $GITHUB_ENV
-            echo "tag_name=ci-ranger" >> $GITHUB_ENV
+            echo "image_name=apache/gravitino-ci" >> $GITHUB_ENV
+            echo "tag_name=ranger" >> $GITHUB_ENV
           elif [ "${{ github.event.inputs.image }}" == "gravitino" ]; then
             echo "image_type=gravitino" >> $GITHUB_ENV
             # `apache/gravitino` is the default image name, didn't need to tag 
alias name
-          elif [ "${{ github.event.inputs.image }}" == 
"gravitino:playground-trino" ]; then
+          elif [ "${{ github.event.inputs.image }}" == 
"gravitino-playground:trino" ]; then
             echo "image_type=trino" >> $GITHUB_ENV
-            echo "tag_name=playground-trino" >> $GITHUB_ENV
-          elif [ "${{ github.event.inputs.image }}" == 
"gravitino:playground-hive" ]; then
+            echo "image_name=apache/gravitino-playground" >> $GITHUB_ENV
+            echo "tag_name=trino" >> $GITHUB_ENV
+          elif [ "${{ github.event.inputs.image }}" == 
"gravitino-playground:hive" ]; then
             echo "image_type=hive" >> $GITHUB_ENV
-            echo "tag_name=playground-hive" >> $GITHUB_ENV
-          elif [ "${{ github.event.inputs.image }}" == 
"gravitino:playground-ranger" ]; then
+            echo "image_name=apache/gravitino-playground" >> $GITHUB_ENV
+            echo "tag_name=hive" >> $GITHUB_ENV
+          elif [ "${{ github.event.inputs.image }}" == 
"gravitino-playground:ranger" ]; then
             echo "image_type=ranger" >> $GITHUB_ENV
-            echo "tag_name=playground-ranger" >> $GITHUB_ENV
+            echo "image_name=apache/gravitino-playground" >> $GITHUB_ENV
+            echo "tag_name=ranger" >> $GITHUB_ENV
           fi
 
       - name: Check publish Docker token
@@ -98,7 +106,7 @@ jobs:
           sudo rm -rf /opt/hostedtoolcache/CodeQL
           if [[ "${image_type}" != "gravitino" ]]; then
             # Only build the latest image for gravitino
-            ./dev/docker/build-docker.sh --platform all --type ${image_type} 
--image apache/gravitino --tag ${{ github.event.inputs.version }} --latest      
    
+            ./dev/docker/build-docker.sh --platform all --type ${image_type} 
--image ${image_name} --tag "${tag_name}-${{ github.event.inputs.version }}" 
--latest          
           else
-            ./dev/docker/build-docker.sh --platform all --type ${image_type} 
--image apache/gravitino --tag ${tag_name}-${{ github.event.inputs.version }}
+            ./dev/docker/build-docker.sh --platform all --type ${image_type} 
--image apache/gravitino --tag ${{ github.event.inputs.version }}
           fi
\ No newline at end of file

Reply via email to