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).)


-- 
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