-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(Linux): factorise jdk in docker-bake.hcl #401
chore(Linux): factorise jdk in docker-bake.hcl #401
Conversation
docker-bake.hcl
Outdated
] | ||
platforms = ["linux/amd64"] | ||
variable "default_jdk" { | ||
default = 17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default = 17 | |
default = 11 |
Setting the default JDK to 11 so we can introduce this pull request without any (breaking) change.
Solving #399 will then be as simple as setting this default_jdk value to 17
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compared to the changes needed in /~https://github.com/jenkinsci/docker-ssh-agent/pull/400/files, this illustrates the benefit of this PR.
This PR factorises the JDK in docker bake file, resulting in a more concise definition of images and ensuring tagging consistency, with one block defining Alpine images, another defining Debian images, and lastly the remaining one for the special Debian 21 preview image.
I titled this PR "chore/breaking" as it depends:If this PR is released first, it will be a breaking change as it will change the JDK of the short tags to Java 17, closing The Linux short tags are targeting Java 11 #399 and superseding breaking(Linux): short tags targeting Java 17 instead of Java 11 #400If this PR is released after breaking(Linux): short tags targeting Java 17 instead of Java 11 #400, there will be no change to the resulting images and tags.EDIT: No longer a breaking change with 427788c
Note that we can still target a single image even with this factorisation:
Testing done
Verified that the output of
docker buildx bake --file docker-bake.hcl linux --print
withVERSION=1.2.3
&ON_TAG=true
is equivalent to the one of #400:#400
After
Submitter checklist