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

ci: move building the go binaries outside of the Docker image to speed up builds #544

Merged
merged 1 commit into from
Feb 4, 2022

Conversation

cbuto
Copy link
Contributor

@cbuto cbuto commented Feb 4, 2022

Related to #539. I tested this locally as much as possible using act with some of the build steps commented out.

This commit moves the building of the chartmuseum binaries out of the Docker image and uses make build-cross early on in the job to build all the binaries. Then the Docker image will copy in the proper binary based on the TARGETARCH build arg.

Building the images is now super quick, although some of that time was moved to the make build-cross step. However, now we only have to download go modules once instead of N number of times (where N = number of architectures).

I also combined the build and push steps since it seemed like an innocent change (like @jdolitsky mentioned in the issue) 🤞.

@cbuto cbuto requested review from jdolitsky and scbizu February 4, 2022 20:19
@cbuto cbuto self-assigned this Feb 4, 2022
@helm-bot helm-bot added the size/M label Feb 4, 2022
Copy link
Contributor

@jdolitsky jdolitsky left a comment

Choose a reason for hiding this comment

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

Lets throw it against CI and see what happens here :)

main should produce canary image(s) so we can test them out

@jdolitsky jdolitsky merged commit 6fbfc6e into helm:main Feb 4, 2022
@jdolitsky jdolitsky added this to the v0.14.1 milestone Feb 4, 2022
nerdeveloper pushed a commit to nerdeveloper/chartmuseum that referenced this pull request Feb 10, 2022
nerdeveloper pushed a commit to nerdeveloper/chartmuseum that referenced this pull request Feb 10, 2022
@cbuto cbuto modified the milestones: v0.14.1, v0.15.0 Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants