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

Improve Docker image building #554

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Conversation

jgiannuzzi
Copy link
Member

This PR is the fourth in a series to address #328.

It changes the way we build the Docker images by using the built binary and copying it into the image instead of rebuilding it. This allows us to take advantage of minimal and effective caching. The images for the various architectures are now built in parallel and merged during the push to the registry.

@jgiannuzzi jgiannuzzi self-assigned this Nov 5, 2023
@jgiannuzzi jgiannuzzi added the ci CI related label Nov 5, 2023
@jgiannuzzi jgiannuzzi force-pushed the docker-cache branch 2 times, most recently from d4e71d9 to 5823e12 Compare November 9, 2023 20:54
We use the built binary and copy it into the image instead of rebuilding
it, which allows us to take advantage of minimal and effective caching.
The images for the various architectures are built in parallel and
merged during registry upload.
@jgiannuzzi jgiannuzzi marked this pull request as ready for review November 10, 2023 09:22
@jgiannuzzi jgiannuzzi merged commit 0ad1743 into G-Research:main Nov 10, 2023
17 checks passed
@jgiannuzzi jgiannuzzi deleted the docker-cache branch November 10, 2023 16:57
@jgiannuzzi jgiannuzzi linked an issue Nov 13, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci CI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Go caching in CI
2 participants