-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
feat(buildDockerAndPublishImage): allow to specify a target when using docker bake #822
feat(buildDockerAndPublishImage): allow to specify a target when using docker bake #822
Conversation
e99e4aa
to
6be0c7c
Compare
Tested with success in jenkins-infra/docker-jenkins-weekly#1467:
|
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.
(edited after team discussion)
This PR also fixes the fact that before this change when using docker bake, cst tests are executed only on the image with the latest tag instead of testing all* built targets.
This is a distinct change which need to be discussed as there were reason for not doing it.
Can you remove it from this PR please as it is a blocker from my point of view.
After discussion:
- I misunderstood: the changes on "tests" in this PR not only are required, but are also only scoped to choose the proper local image to build. The PR body explains it carefully, I misread the asterisk, nevermind my remark
- Although we want to remove the naming constraint "image tag" <-> "target" (ref. Test jenkins-infra/pipeline-library#822 docker-jenkins-weekly#1467)
…ne-library#822" This reverts commit e8d6d02.
Addressed in jenkins-infra/docker-jenkins-weekly@814c2a0 by retrieving the tag of the selected target(s), with the Tested successfully in jenkins-infra/docker-jenkins-weekly#1467 from where I removed the tags modifications to keep only the test of this PR:
|
Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
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.
LGTM!
…g docker bake (jenkins-infra#822) * feat(buildDockerAndPublishImage): allow to specify a target when using docker bake * allow cst to test a specific tag of an image * allow cst to test a specific tag of an image * Update vars/buildDockerAndPublishImage.txt Co-authored-by: Damien Duportal <damien.duportal@gmail.com> --------- Co-authored-by: Damien Duportal <damien.duportal@gmail.com>
This PR adds a
dockerBakeTarget
parameter to thebuildDockerAndPublishImage
function to allow specifying a target when using docker bake.This PR also fixes the fact that before this change when using docker bake, cst tests are executed only on the image with the
latest
tag instead of testing all* built targets.Ref:
*: with a platform corresponding to the architecture of the machine executing the tests.