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

feat: Cache CI-built cloud-provider-kind Docker image #84

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

nialdaly
Copy link
Contributor

@nialdaly nialdaly commented Dec 13, 2024

Summary

  • Currently the cloud-provider-kind-cloud-provider:latest Docker image is built after checking out the cloud-provider-kind repo and running:
sudo bash -c 'NET_MODE=kind docker compose up -d'
  • Once this image is built, it can be cached (using a composite action) for subsequent workflow runs to use.

@nialdaly nialdaly self-assigned this Dec 13, 2024
@nialdaly nialdaly changed the title feat: Pulled Docker image caching feat: Cache CI-built cloud-provider-kind Docker image Dec 13, 2024
Copy link
Contributor

@markgoddard markgoddard left a comment

Choose a reason for hiding this comment

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

Did you see this approach? https://docs.docker.com/build/cache/backends/gha/#using-dockerbuild-push-action

Unsure if it's better, and it would require building the image first, using the cache parameters.

@nialdaly
Copy link
Contributor Author

I've used that in previous places, the change would be as you say to pre-build the image first building it using docker-compose!

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.

2 participants