-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Container building pipeline: supports git tags and remove local image info database #724
Conversation
8b65b07
to
58c676a
Compare
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.
The array handling is broken + some nits.
cc4786e
to
1c73bea
Compare
/override test-integration-metal3-dev-tools-centos |
@mquhuy: Overrode contexts on behalf of mquhuy: test-integration-metal3-dev-tools-centos, test-integration-metal3-dev-tools-ubuntu In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
e0a6e16
to
ce5ab29
Compare
/override test-integration-metal3-dev-tools-centos |
@mquhuy: Overrode contexts on behalf of mquhuy: test-integration-metal3-dev-tools-centos, test-integration-metal3-dev-tools-ubuntu In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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
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.
I mentioned in one of the GH workflow file PRs that we could pass the information about Dockerfile and image name via the env, instead of maintaining the JSON file in this repo.
Changing it later requires a lot more effort and syncing PRs than fixing it right now. WDYT? @mquhuy @kashifest @lentzi90
Just for reference, here is the link to @tuminoid 's original comment: metal3-io/baremetal-operator#1456 (comment) I have put in there some of my ideas, in this thread I can also mention that changing the structure now is not easy, either:
|
The JSON file has 3 parameters: repository, dockerfile location, and repo_name (image name). They are pretty specific per workflow job. You're already passing one of them (image name), so 2 new, and for 95% of the cases, we can default the Dockerfile to be
I'm not following this argument. I'm suggesting adding 2 more environment variables to the workflow files, and removing the |
I'm answering your later point first, since it's needed to understand the first point. If you check our jenkins, you will find several jobs in form
I don't think it's that simple, we should not just care about the number of params, but also their complexity
|
I agree with @tuminoid . Getting rid of the json file and using parameters instead makes the logic simpler and the job more generic/re-usable.
I don't think it has to be all the same job, but even if we do it that way, can you explain why this would be problematic @huy? We pass URLs and names, tags, branches, etc as parameters all the time. |
/test-integration-metal3-dev-tools-ubuntu |
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
/approve |
scripts/build-container-image.sh
Outdated
docker push "${image_path}" | ||
docker tag "${image_path}" "${image_latest_path}" | ||
docker push "${image_latest_path}" | ||
# docker push "${image_path}" |
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.
Are the docker pushes intentionally commented out?
/hold
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.
Ah, no. I must have missed it, initially commented it just to test the script. Thanks for the notice :D
7f77c35
to
4bb6203
Compare
/ test-integration-metal3-dev-tools-centos |
/test-integration-metal3-dev-tools-centos |
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
/unhold
/override test-integration-metal3-dev-tools-centos |
@tuminoid: Overrode contexts on behalf of tuminoid: test-integration-metal3-dev-tools-centos, test-integration-metal3-dev-tools-ubuntu In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test-integration-metal3-dev-tools-centos |
/override test-integration-metal3-dev-tools-centos |
@tuminoid: Overrode contexts on behalf of tuminoid: test-integration-metal3-dev-tools-centos, test-integration-metal3-dev-tools-ubuntu In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kashifest, Rozzii, tuminoid The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
With this PR, container building script will handle git tags, provided as
refs/tags/<tag_name>
by github actions. The exact container tags are as followed:release-0.4
release-0.4_20231127_d03da556
main
, tagging it aslatest
.Edit: Changed some implementation to take into account new parameters set implemented in https://gerrit.nordix.org/c/infra/cicd/+/20053/3/jjb/metal3/job_container_image_building.yaml. Basically this means no image information will be stored in this repo, but got piped from upstream (jjb configuration)