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

build(dockerfile): run go build with mount=type=cache #268

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

paullaffitte
Copy link
Contributor

This allows shorter build time by reusing the go build cache and removing the -a flag of the go build command that "force rebuilding of packages that are already up-to-date". It may not improve build time in the CI. On my computer it improved the build time by about 80%.

@paullaffitte paullaffitte merged commit 0c9d668 into main Feb 8, 2024
14 checks passed
@paullaffitte paullaffitte deleted the build/docker-build-cache branch February 8, 2024 10:21
@monkeynator
Copy link
Member

🎉 This PR is included in version 1.7.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@monkeynator
Copy link
Member

🎉 This PR is included in version 1.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants