[ 
https://issues.apache.org/jira/browse/HADOOP-19828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18063732#comment-18063732
 ] 

ASF GitHub Bot commented on HADOOP-19828:
-----------------------------------------

pan3793 commented on code in PR #8293:
URL: https://github.com/apache/hadoop/pull/8293#discussion_r2899541895


##########
.github/workflows/build-and-tag-hadoop-image.yaml:
##########
@@ -0,0 +1,72 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: build-and-tag-hadoop-image
+
+# This workflow builds (if necessary) and tags the Docker image.
+# Images are tagged by extracting the version from branch name:
+#   docker-hadoop-X.Y -> X.Y
+
+on:
+  push:
+    branches:
+      - 'docker-hadoop-**'
+      - '!docker-hadoop-runner-**'
+
+permissions:
+  contents: read
+  packages: write
+
+jobs:
+  build:
+    uses: ./.github/workflows/build-hadoop-image.yaml
+
+  tag:
+    needs: build
+    runs-on: ubuntu-latest

Review Comment:
   use `ubuntu-slim`, a bill-friendly SKU
   
   
https://github.blog/changelog/2026-01-22-1-vcpu-linux-runner-now-generally-available-in-github-actions/





> Build Docker image in CI only once per commit
> ---------------------------------------------
>
>                 Key: HADOOP-19828
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19828
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: docker
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>              Labels: pull-request-available
>
> GitHub workflow for building Hadoop image in CI currently re-builds the image 
> if the same commit is pushed to a different branch.  It should re-use 
> existing image and only apply new tag.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to