Skip to content
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

Fix image builds and extend CI coverage to build images on PRs #241

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Mar 21, 2024

Fix the image build on master after a recent dependency update broke it. Also extend CI to build all images so breakages should be caught in CI on PRs already.

See commits for details.

@tklauser tklauser requested review from a team as code owners March 21, 2024 08:50
@tklauser tklauser requested review from aanm and christarazi March 21, 2024 08:50
@tklauser tklauser force-pushed the pr/tklauser/tester-fix-build branch from 92012c5 to 84ca9f1 Compare March 21, 2024 09:13
A recent dependency update broke the build of the tester image [1]. This
was only caught on master because that image is not built in CI on PRs.
A successive commit will fix that.

[1] https://github.com/cilium/image-tools/actions/runs/8371783081/job/22921438140

Fixes: e9b6594 ("build(deps): bump github.com/docker/docker in /images/tester/cst")

Signed-off-by: Tobias Klauser <[email protected]>
@tklauser tklauser force-pushed the pr/tklauser/tester-fix-build branch 2 times, most recently from 0c60f70 to bb41ce6 Compare March 21, 2024 10:49
@tklauser tklauser changed the title Fix tester image build and extend CI coverage to build images on PRs. Fix image builds and extend CI coverage to build images on PRs Mar 21, 2024
Ubuntu 22.04 LTS updated GCC 9 to 9.5.0, adjust the version in the spec.

Also, we started building multiarch images and the arm64 cross-compile
packages aren't available when building the linux/arm64 image, so skip
the installation.

Signed-off-by: Tobias Klauser <[email protected]>
Currently images are only built (and pushed) on pushes to the master
branch, i.e. once the PR is merged. This can lead to situations where
the image build is broken by a PR but the breakage is only caught later
on, see e.g. [1] and [2].

Fix this by also building the images on PRs but only push them to the
registry for master pushes as previously.

[1] #233 (comment)
[2] #240

Signed-off-by: Tobias Klauser <[email protected]>
@tklauser tklauser force-pushed the pr/tklauser/tester-fix-build branch from bb41ce6 to 01cbb4c Compare March 21, 2024 10:54
Copy link
Member

@sayboras sayboras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@tklauser tklauser merged commit 8d54797 into master Mar 22, 2024
2 checks passed
@tklauser tklauser deleted the pr/tklauser/tester-fix-build branch March 22, 2024 19:02
@tklauser tklauser linked an issue Mar 26, 2024 that may be closed by this pull request
@tklauser tklauser mentioned this pull request Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build images on PRs
4 participants