From 3430e708d4de7e8b48a455231e407124e0b32440 Mon Sep 17 00:00:00 2001 From: okumin Date: Fri, 13 Mar 2026 18:57:29 +0900 Subject: [PATCH 1/4] Move the GitHub Action --- .github/workflows/{docker-GA-images.yml => docker-images.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{docker-GA-images.yml => docker-images.yml} (100%) diff --git a/.github/workflows/docker-GA-images.yml b/.github/workflows/docker-images.yml similarity index 100% rename from .github/workflows/docker-GA-images.yml rename to .github/workflows/docker-images.yml From 84bc1dcf1ca7abdc1dd219df848fd0e2bc113b4b Mon Sep 17 00:00:00 2001 From: okumin Date: Fri, 13 Mar 2026 19:27:58 +0900 Subject: [PATCH 2/4] HIVE-29463: Publish nightly Docker images --- .github/workflows/docker-images.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index e871100f0dfa..f640aa69148e 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -18,6 +18,8 @@ name: Build and Publish docker images for Hive GA on: create: + schedule: + - cron: '17 3 * * *' workflow_dispatch: inputs: hiveVersion: @@ -40,7 +42,7 @@ env: jobs: buildAndPush: - if: github.event_name == 'workflow_dispatch' || github.event_name == 'create' && github.event.ref_type == 'tag' && startsWith(github.event.ref, 'rel/') + if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || (github.event_name == 'create' && github.event.ref_type == 'tag' && startsWith(github.event.ref, 'rel/')) runs-on: ubuntu-latest steps: - name: Free disk space @@ -76,8 +78,8 @@ jobs: echo "TEZ_VERSION=${{ github.event.inputs.tezVersion }}" >> $GITHUB_ENV echo "BUILD_ENV=release" >> $GITHUB_ENV - - name: Prepare environment variables for Release - if: github.event_name == 'create' && github.event.ref_type == 'tag' && startsWith(github.event.ref, 'rel/') + - name: Prepare environment variables from repository + if: github.event_name != 'workflow_dispatch' 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 @@ -87,10 +89,21 @@ jobs: - name: Prepare common environment variables run: | echo "namespace=${{ vars.DOCKER_NAMESPACE || 'apache' }}" >> $GITHUB_ENV - echo "tag=$HIVE_VERSION" | awk '{print tolower($0)}' >> $GITHUB_ENV + echo "tag=$HIVE_VERSION" >> $GITHUB_ENV + + - name: Validate nightly tag suffix + if: github.event_name == 'schedule' + run: | + case "$tag" in + *-SNAPSHOT) ;; + *) + echo "Nightly image tag must end with -SNAPSHOT, got: $tag" + exit 1 + ;; + esac - name: Build Hive project - if: github.event_name == 'create' && github.event.ref_type == 'tag' && startsWith(github.event.ref, 'rel/') + if: github.event_name != 'workflow_dispatch' run: | mvn --batch-mode clean package -DskipTests -Pdist ls ./packaging/target/ From 820f1e05fdc9faa43f2fe4d4da5c3980b42a22d8 Mon Sep 17 00:00:00 2001 From: okumin Date: Sat, 4 Apr 2026 13:46:04 +0900 Subject: [PATCH 3/4] Refine the validation --- .github/workflows/docker-images.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index f640aa69148e..1a4dbd8f838f 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -94,13 +94,10 @@ jobs: - name: Validate nightly tag suffix if: github.event_name == 'schedule' run: | - case "$tag" in - *-SNAPSHOT) ;; - *) - echo "Nightly image tag must end with -SNAPSHOT, got: $tag" - exit 1 - ;; - esac + if [[ "$tag" != *-SNAPSHOT ]]; then + echo "Nightly image tag must end with -SNAPSHOT, got: $tag" + exit 1 + fi - name: Build Hive project if: github.event_name != 'workflow_dispatch' From 8c1bacdd59b56c4cf4fb371eeee980406cd98d74 Mon Sep 17 00:00:00 2001 From: okumin Date: Mon, 6 Apr 2026 20:11:53 +0900 Subject: [PATCH 4/4] Use "nightly" tag --- .github/workflows/docker-images.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 1a4dbd8f838f..53c407883700 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -89,15 +89,16 @@ jobs: - name: Prepare common environment variables run: | echo "namespace=${{ vars.DOCKER_NAMESPACE || 'apache' }}" >> $GITHUB_ENV + + - name: Prepare an image tag for release + if: github.event_name != 'schedule' + run: | echo "tag=$HIVE_VERSION" >> $GITHUB_ENV - - name: Validate nightly tag suffix + - name: Prepare an image tag for nightly if: github.event_name == 'schedule' run: | - if [[ "$tag" != *-SNAPSHOT ]]; then - echo "Nightly image tag must end with -SNAPSHOT, got: $tag" - exit 1 - fi + echo "tag=nightly" >> $GITHUB_ENV - name: Build Hive project if: github.event_name != 'workflow_dispatch'