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

github: Add "Image Release Build" workflow #627

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

gandro
Copy link
Member

@gandro gandro commented Sep 16, 2021

This adds a workflow to build the release images via GitHub actions,
instead of relying on the quay.io autobuilder.

The quay.io autobuilder often fails due to DockerHub's rate
limiting on the golang builder base image. By using our own
Docker credentials, we can avoid hitting the rate limit.

The workflow heavily based on the one found in cilium/cilium, with
only minor modifications (i.e. only building a single image, only
pushing to quay.io) and is similar to the one used by Hubble UI.

@gandro
Copy link
Member Author

gandro commented Sep 16, 2021

Note: I tried to add support for arm64, but it seems like the arm64 alpine base images have some issues when running on x86-based GitHub Actions: https://gitlab.alpinelinux.org/alpine/aports/-/issues/12406

This adds a workflow to build the release images via GitHub actions,
instead of relying on the quay.io autobuilder.

The quay.io autobuilder often fails due to DockerHub's rate
limiting on the golang builder base image. By using our own
Docker credentials, we can avoid hitting the rate limit.

The workflow heavily based on the one found in `cilium/cilium`, with
only minor modifications (i.e. only building a single image, only
pushing to quay.io) and is similar to the one used by Hubble UI.

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
@gandro gandro force-pushed the pr/gandro/build-images-in-gh-actions branch from 5f2379c to 52c8c7b Compare September 20, 2021 11:40
@gandro gandro temporarily deployed to release September 20, 2021 11:40 Inactive
@gandro
Copy link
Member Author

gandro commented Sep 20, 2021

Quay credentials have been added. This only pushes to quay, as we never had a DockerHub image for the Hubble CLI.

Successful run demonstrating credentials and build works (with Docker push: false) https://github.com/cilium/hubble/actions/runs/1253368334

@gandro gandro force-pushed the pr/gandro/build-images-in-gh-actions branch from 52c8c7b to 6c5906b Compare September 20, 2021 11:50
@gandro gandro marked this pull request as ready for review September 20, 2021 11:50
@gandro gandro requested review from a team as code owners September 20, 2021 11:50
@gandro gandro requested review from a team, nebril and nbusseneau and removed request for a team September 20, 2021 11:50
@gandro gandro requested review from glibsm and removed request for a team September 20, 2021 11:50
Copy link
Member

@nbusseneau nbusseneau left a comment

Choose a reason for hiding this comment

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

LGTM overall, did you try it out manually via triggers other than push?

@gandro
Copy link
Member Author

gandro commented Sep 20, 2021

LGTM overall, did you try it out manually via triggers other than push?

Yes. This is the commit which led to the successful run that I linked above (#627 (comment)):
52c8c7b

@nbusseneau
Copy link
Member

Ah sorry I missed the comment linking to a successful run 🙈

@glibsm glibsm merged commit 10f2f70 into master Sep 30, 2021
@glibsm glibsm deleted the pr/gandro/build-images-in-gh-actions branch September 30, 2021 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants