You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/03/02 10:35:00 UTC

[jira] [Commented] (HADOOP-19828) Build Docker image in CI only once per commit

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

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

adoroszlai opened a new pull request, #8293:
URL: https://github.com/apache/hadoop/pull/8293

   ## What changes were proposed in this pull request?
   
   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.
   
   Example: when creating new Hadoop version's image (e.g. Hadoop 3.4.3), the base branch needs to be created first with the latest commit of the previous version's branch.  PR would be opened against the new branch.
   
   https://issues.apache.org/jira/browse/HADOOP-19828
   
   ## How was this patch tested?
   
   1. Pushed to branch [HADOOP-19828](https://github.com/adoroszlai/hadoop/commits/HADOOP-19828) in my fork, workflow [built](https://github.com/adoroszlai/hadoop/actions/runs/22569984131/job/65375100990) the [image](https://github.com/adoroszlai/hadoop/pkgs/container/hadoop/712506322?tag=ec3742530801f18503107bce6b319325c206eb33).
   2. Pushed to branch [HADOOP-19828-test](https://github.com/adoroszlai/hadoop/commits/HADOOP-19828-test), workflow [skipped build](https://github.com/adoroszlai/hadoop/actions/runs/22570278821/job/65376103203) after finding existing image.
   3. Pushed to branch [docker-hadoop-HADOOP-19828](https://github.com/adoroszlai/hadoop/commits/docker-hadoop-HADOOP-19828), workflow [skipped build](https://github.com/adoroszlai/hadoop/actions/runs/22570309332/job/65376204875) and [published](https://github.com/adoroszlai/hadoop/actions/runs/22570309332/job/65376250087#step:5:49) the image with new tag [HADOOP-19828](https://github.com/adoroszlai/hadoop/pkgs/container/hadoop/712506322?tag=HADOOP-19828).
   
   (Adapted from Ozone's [Docker image workflow](https://github.com/apache/ozone-docker/tree/latest/.github/workflows).)




> 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
>
> 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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org