deniskuzZ commented on code in PR #6127:
URL: https://github.com/apache/hive/pull/6127#discussion_r2440486560


##########
.github/workflows/docker-GA-images.yml:
##########
@@ -113,29 +48,40 @@ jobs:
         with:
           java-version: 21
 
-      - name: Hive version
-        run: echo "HIVE_VERSION=$(mvn -f "pom.xml" -q help:evaluate 
-Dexpression=project.version -DforceStdout)" >> $GITHUB_ENV
-
-      - name: Tag
-        run: echo "tag=${{ env.HIVE_VERSION }}" | awk '{print tolower($0)}' >> 
$GITHUB_ENV
-
-      - name: Hadoop version
-        run: echo "HADOOP_VERSION=$(mvn -f "pom.xml" -q help:evaluate 
-Dexpression=hadoop.version -DforceStdout)" >> $GITHUB_ENV
-
-      - name: Tez version
-        run: echo "TEZ_VERSION=$(mvn -f "pom.xml" -q help:evaluate 
-Dexpression=tez.version -DforceStdout)" >> $GITHUB_ENV
+      - name: Prepare environment variables for Workflow Dispatch
+        if: github.event_name == 'workflow_dispatch'
+        run: |
+          echo "HIVE_VERSION=${{ github.event.inputs.hiveVersion }}"  >> 
$GITHUB_ENV
+          echo "HADOOP_VERSION=${{ github.event.inputs.hadoopVersion }}" >> 
$GITHUB_ENV
+          echo "TEZ_VERSION=${{ github.event.inputs.tezVersion }}" >> 
$GITHUB_ENV
+          echo "BUILD_ENV=archive" >> $GITHUB_ENV
+
+      - name: Prepare environment variables for Release
+        if: github.event_name == 'create' && github.event.ref_type == 'tag' && 
startsWith(github.event.ref, 'rel/')
+        run: |
+          echo "HIVE_VERSION=$(mvn -f "pom.xml" -q help:evaluate 
-Dexpression=project.version -DforceStdout)" >> $GITHUB_ENV
+          echo "HADOOP_VERSION=$(mvn -f "pom.xml" -q help:evaluate 
-Dexpression=hadoop.version -DforceStdout)" >> $GITHUB_ENV
+          echo "TEZ_VERSION=$(mvn -f "pom.xml" -q help:evaluate 
-Dexpression=tez.version -DforceStdout)" >> $GITHUB_ENV
+          echo "BUILD_ENV=buildarchive" >> $GITHUB_ENV
+
+      - name: Prepare common environment variables
+        run: |
+          echo "namespace=${{ vars.DOCKER_NAMESPACE || 'apache' }}" >> 
$GITHUB_ENV
+          echo "tag=$HIVE_VERSION" | awk '{print tolower($0)}' >> $GITHUB_ENV
 
       - name: Build Hive project

Review Comment:
   previously we used released archive to build the image and now we'll always 
build from sources?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to